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

Re: Bug in bash



On Tue, Oct 02, 2001 at 12:24:27PM -0700, Ralph Jennings wrote:
> 
> So what?  All that does is echo a NL at the end, big deal.  All scripts 
> who want -n to work would then invoke "#!/bin/bash" instead of "#!/bin/sh".
> This won't really break much, just aesthetic bugs in scripts...

no all scripts that want to do anything but echo a simple string
without any escapes at all should use printf instead of echo.  

absolutly no need to depend on the bloated bash for its non-standard
echo. (whose behavior could change without warning anyway, echo is
simply unportable).

printf is a shell builtin of both current ash and bash so there is not
even any need to worry about /usr being mounted yet.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpInQanp3MbU.pgp
Description: PGP signature


Reply to: