Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Inconsistent behavior of ERR_EXIT with conditionals
- X-seq: zsh-workers 50915
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Philippe Altherr" <philippe.altherr@xxxxxxxxx>
- Cc: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Inconsistent behavior of ERR_EXIT with conditionals
- Date: Tue, 08 Nov 2022 14:20:04 -0500
- Archived-at: <https://zsh.org/workers/50915>
- Feedback-id: iaa214773:Fastmail
- In-reply-to: <CAGdYchvGratVkzg_n8CuT=e--QbDaEjT3PXFuyhbFhp8DJ5hQA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAGdYchsbWpFRsxS2CRzhdDix-B9osY_isv9nuBjbvt4nDTEWLA@mail.gmail.com> <CAH+w=7ZTSXUm6DLDk9k7z_V7YezKXJdcPi2uw1bTdmMjvTbkzg@mail.gmail.com> <CAH+w=7apH5_YnJtWT4x=mUOFhpHH1xMN9EkjjB0FJAi=8JQHdQ@mail.gmail.com> <CAGdYchsaiL-CuU96epSgCtrDqkkJ73mgNkZzY4FSp4-w4qkx+w@mail.gmail.com> <CAH+w=7YCNXmVU8Os29tSr1JrnFpGw47EqRfiJKdXNp0P-3KPGw@mail.gmail.com> <1edb7786-f0b2-4830-88fa-99a19bda39e2@app.fastmail.com> <CAGdYchvGratVkzg_n8CuT=e--QbDaEjT3PXFuyhbFhp8DJ5hQA@mail.gmail.com>
On Tue, Nov 8, 2022, at 1:51 PM, Philippe Altherr wrote:
> *Is there any chance that Zsh could be changed to more closely follow
> the specification above? *
I don't have time right now to provide more tests or otherwise
elaborate, but I am pretty sure that no shell exhibits the behavior
you want, and I am *very* sure that said behavior would violate
POSIX in one way or another. I know that zsh does not aim for POSIX
compliance, but that doesn't mean it ought to take a feature which
is currently highly compatible with other shells and change it to
be completely incompatible.
I strongly object to any of these proposed changes, except ones
that bring zsh into closer alignment with other shells. (These are
arguably bugfixes.)
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author