Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ERRNO is unset until set
- X-seq: zsh-workers 50141
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: ERRNO is unset until set
- Date: Fri, 29 Apr 2022 10:02:53 -0700
- Archived-at: <https://zsh.org/workers/50141>
- In-reply-to: <CAHYJk3TQx057ZBM-6MogyJFOufsznj4SCWqmkyP4qr=DRfLm5Q@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CA+rB6G+8mEDS=iZztLCTbtK99MqmaG9chi_GWANOQ9HN_U1uMQ@mail.gmail.com> <Ymqfi9/+1EsEORnA@CptOrmolo.darkstar> <Ymqhpe+lM+5+VF/l@CptOrmolo.darkstar> <CAH+w=7Z=5fCZyNNXU8Fw1_OLzXF2P__gmX+pVUb3CcVvnn5JWg@mail.gmail.com> <CAHYJk3TQx057ZBM-6MogyJFOufsznj4SCWqmkyP4qr=DRfLm5Q@mail.gmail.com>
On Fri, Apr 29, 2022 at 3:00 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> When is this good or useful?
I was wondering that myself. The only thing I can think of is to make
${+ERRNO} show the "right" thing.
Archive search is still offline (and I'm not sure it would help
anyway) so I can't find the discussion that led up my patch from
32337, but it seems to me that was intended to be just a first step to
causing some of those variables to be non-special when zsh is started
in emulation mode. The second step just never happened, or at least
not comprehensively.
I'm no longer even sure why ERRNO was included, there's no reference
to it in the POSIX shell specification. Clash with some other shell?
But which one?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author