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

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



On Tue, 4 Oct 2016 09:45:38 +0200
Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> 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:
> 
>   http://www.zsh.org/mla/workers/2009/msg00572.html
>   http://www.zsh.org/mla/workers/2009/msg00574.html
> 
> I haven't checked the current status for the other two cases.

The point I made there was I was waiting for things to clear up.  That
was 7 years ago.  I'm not going to wait any longer for things to clear
up...

pws



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