bin/81165: /bin/sh -e bug
Parv
parv at pair.com
Tue May 17 20:00:32 GMT 2005
The following reply was made to PR bin/81165; it has been noted by GNATS.
From: Parv <parv at pair.com>
To: Simon Marlow <simonmar at gmail.com>
Cc: FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: bin/81165: /bin/sh -e bug
Date: Tue, 17 May 2005 15:53:07 -0400
in message <200505171620.j4HGKVLK034638 at sm.dnsalias.com>,
wrote Simon Marlow thusly...
>
> There is a bug in ash's handling of the -e flag. See the example below.
>
> >How-To-Repeat:
>
> $ cat >test.sh
> if true; then
> false && true
> fi
> echo "test succeeded"
> $ /bin/sh -e test.sh
> zsh: 34546 exit 1 /bin/sh -e test.sh
> $ bash -e test.sh
> test succeeded
>
> Bash works correctly. If the 'if' statement is removed, ash also
> works correctly.
Just a data point ... "test succeeded" is printed by /bin/sh of
FreeBSD 5.3-p13, ksh93 20050202, & bash 3.0.16_1.
- Parv
--
More information about the freebsd-bugs
mailing list