gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] tests failure with zsh


From: Robin Farine
Subject: Re: [Gnu-arch-users] tests failure with zsh
Date: Sat, 28 Feb 2004 21:43:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031221 Thunderbird/0.4

Colin Walters wrote:
On Sat, 2004-02-28 at 11:52, Johannes Berg wrote:


set -e
false && true

cause the script to fail (in my windows zsh)

Er, that's perfectly normal for any shell.  false and true is false.

The problem looks like it comes from the -e option. Bash only fails with the -e flag when a simple command yields a non-zero exit status, which correspond to POSIX shell behavior. So in this case, a Bash script does not fail. Other shells like Tcsh (and now Zsh) seem to exit on any command yielding a non-zero exit status.

Arg, even Bourne based shells cannot agree on these kind of things. In case there are many tests using this idiom, is there by chance any Zsh option/module/... to select POSIX compliant behavior?


Robin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]