/bin/sh compatibility issue
Johannes Hofmann
Johannes.Hofmann at gmx.de
Wed May 10 09:49:11 PDT 2006
joerg at xxxxxxxxxxxxxxxxx wrote:
> On Wed, May 10, 2006 at 03:39:53PM +0000, Johannes Hofmann wrote:
>> The following shell script outputs "false1" with all shells I tried
>> but with /bin/sh on DragonFly. Is this a known incompatibility?
>
> I have to read the POSIX definitions, but this doesn't look very wrong
> at least. Actually, I can understand this behaviour at the very least.
Yes, but the funny thing is that
#!/bin/sh
set -e
false && echo "huh?"
echo "false1"
false
echo "false2"
gives "false1" even with DragonFly /bin/sh.
Johannes
>
> Joerg
More information about the Users
mailing list