Re: Bug in bash
On 1 Oct 2001, Roderick Schertler wrote:
> On Sat, 29 Sep 2001 03:27:54 +0200, Wichert Akkerman <firstname.lastname@example.org> said:
> > Previously Bruce Jackson wrote:
> >> But, why is there a difference between the behaviour of bash under
> >> Linux, HP-UX, and Solaris? The protability of scripts is the problem.
> > Linux is POSIX complient, the rest is not.
> This turns out not to be the case. POSIX says that echo does handle
> the \ escapes, and doesn't honor -n. Neither bash nor ash (both invoked
> as sh) behaves quite this way.
Actually, ash does, at least if you use the internal version of echo in
ash. AFAIK, there's no shell-builtin for echo in bash, so bash uses
/bin/echo -- which comes from GNU shellutils, usually.
wouter dot verhelst at advalvas dot be
"Human knowledge belongs to the world"
-- From the movie "Antitrust"
rm -rf /bin/laden