zsh-workers
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-workers@zsh.org
Subject: Re: 'set -e' with '!' POSIX issue
Date: Tue, 4 Oct 2016 09:45:38 +0200	[thread overview]
Message-ID: <20161004074538.GD4212@cventin.lip.ens-lyon.fr> (raw)
In-Reply-To: <20161002185530.3fa8c013@ntlworld.com>

On 2016-10-02 18:55:30 +0100, Peter Stephenson wrote:
> On Sun, 2 Oct 2016 11:01:18 +0100
> Martijn Dekker <martijn@inlv.org> 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.

-- 
Vincent Lefèvre <vincent@vinc17.net> - 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)


  reply	other threads:[~2016-10-04  7:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-02 10:01 Martijn Dekker
2016-10-02 17:55 ` Peter Stephenson
2016-10-04  7:45   ` Vincent Lefevre [this message]
2016-10-04  8:30     ` Peter Stephenson
2016-10-05 10:18       ` Martijn Dekker
2016-10-05 11:37         ` Peter Stephenson
2016-10-05 13:47         ` Peter Stephenson
2016-10-06  8:36           ` Peter Stephenson
2016-10-06 11:22           ` Martijn Dekker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161004074538.GD4212@cventin.lip.ens-lyon.fr \
    --to=vincent@vinc17.net \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).