Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 'set -e' with '!' POSIX issue

On 2016-10-02 18:55:30 +0100, Peter Stephenson wrote:
> On Sun, 2 Oct 2016 11:01:18 +0100
> Martijn Dekker <martijn@xxxxxxxx> wrote:
> > 'set -e' ('set -o errexit') is not POSIX compliant on zsh because it
> > doesn't ignore a command beginning with "!".
> I don't really like the errexit logic as there are too many horrible
> cases, since the place we need to test is different from where the code
> is being executed (look at the particularly horrible oldnoeerrexit
> logic).  This was not entirely trivial but we might get away with it.
> The tests are for ERR_RETURN because that's easier to write; most of the
> logic is shared with ERR_EXIT.

I thought that this was not supposed to change:


I haven't checked the current status for the other two cases.

Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Messages sorted by: Reverse Date, Date, Thread, Author