[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [PATCH] latest ash has broken 'echo' command



On Thu, Oct 21, 1999 at 03:04:07PM +0200, Marek Habersack wrote:
>   The latest ash package (0.3.5-7) has a broken 'echo' builtin
> implementation. It should accept the -e and -n parameters, but it doesn't.
> That breaks many things for those who use ash as their /bin/sh - for example
> Linux compile process (makefile uses @echo -n ... to generate UTS_VERSION in
> include/linux/compile.h, which gets output as '-n #define UTS_VERSION ...').
> The attached patch fixes the command to accept BOTH parameters. It parses
> the first args to echo searching for -n and/or -e. First argument starting
> with anything else than '-' or not being -n or -e causes echo to output the
> rest of commandline.

It's not broken.  The Single Unix Specification says that echo must not
support any options.  The kernel makefile should be fixed.
-- 
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


Reply to: