Package: zsh Version: 4.3.9-1 Severity: normal The command
zsh -c 'set -e; ! true; echo OK' fails to output OK, thus does not conform to POSIX: -e When this option is on, if a simple command fails for any of the reasons listed in Section 2.8.1 (on page 2315) 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. bash, dash and ksh93 are correct (but not pdksh, posh and zsh). There's currently a discussion about "set -e" in the austin group mailing-list, but there does not seem to be any ambiguity on the above point, as only "! true" returns an exit status value >0 but this is not a simple command. And concerning historical behavior, both ksh93 and bash output OK. So, I think that pdksh, posh and zsh should follow. Also the bug seems to be already accepted for pdksh: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387755 -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26.5-20080922 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages zsh depends on: ii libc6 2.7-18 GNU C Library: Shared libraries ii libcap2 2.11-2 support for getting/setting POSIX. ii libncursesw5 5.7+20090124-1 shared libraries for terminal hand Versions of packages zsh recommends: ii libpcre3 7.8-2 Perl 5 Compatible Regular Expressi Versions of packages zsh suggests: ii zsh-doc 4.3.9-1 zsh documentation - info/HTML form -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org