Re: [PATCH] latest ash has broken 'echo' command
On Fri, Oct 22, 1999 at 07:35:47PM +0200, Marek Habersack wrote:
> * Marcus Brinkmann said:
> > > True, but I have to KNOW wheter the feature is supported by the given
> > > product or not, right?
> >
> > Trivial:
> >
> > marcus@ulysses[0]:/tmp$ echo -n | wc
> > 0 0 0
> > marcus@ulysses[0]:/tmp$ echo -- -n | wc
> > 1 2 6
> >
> > Writing a shell fucntion around it which returns yes or no is left as an
> > exercise to the reader :)
> Hmm... not quite that good :)). wc is in /usr/bin, that's first.
Then check the error code of it:
`echo -n` && echo y || echo n
vs.
`echo -- -n` && echo y || echo n
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server
Marcus Brinkmann GNU http://www.gnu.org for public PGP Key
Marcus.Brinkmann@ruhr-uni-bochum.de, marcus@gnu.org PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ brinkmd@debian.org
Reply to: