Subject: Re: discrepency beteen /bin/echo and builtin echo of /bin/sh
To: Eric Gillespie <firstname.lastname@example.org>
From: Rick Kelly <email@example.com>
Date: 06/10/2002 17:05:52
Eric Gillespie said:
>Well there you go; the standard changes again. That's why this
>entire discussion is purely academic from my point of view; you
>have to use printf if you're doing anything other than 'echo "foo"'
>or 'echo "foo $bar"'. echo is completely unreliable.
On the other hand, think about all the systems with a /etc/rc.local
which have lines like this:
if [ -f /usr/local/bb/runbb.sh ]; then
echo -n 'bigbrother'
And there are thousands of opensource packages that use "echo -n" in
the many versions of configure that are out there.
A "man echo" on a Solaris box will show you some confusion.
Rick Kelly firstname.lastname@example.org www.rmkhome.com