Package: pdksh
Version: 5.2.14-20
Severity: normal
From: Eric Blake <[EMAIL PROTECTED]>
To: [email protected], [EMAIL PROTECTED]
According to Dan Jacobson on 9/8/2006 5:42 AM:
> $ cat t.sh
> set -ex
> ! true #should stop here but doesn't!?!
> ! false
> true
> false
> : already quit
> $ bash t.sh
> + true
> + false
> + true
> + false
> $ pdksh t.sh
> + true
Bash is right. This is a bug in pdksh; report it there.
POSIX requires:
-e
When this option is on, if a simple command fails for any of the
reasons listed in Consequences of Shell Errors or returns an exit status
value >0, and is not part of the compound list following a while, until,
or if keyword, and is not a part of an AND or OR list, and is not a
pipeline preceded by the ! reserved word, then the shell shall immediately
exit.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]