Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ERRNO is unset until set
- X-seq: zsh-workers 50140
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: ERRNO is unset until set
- Date: Fri, 29 Apr 2022 12:00:11 +0200
- Archived-at: <https://zsh.org/workers/50140>
- In-reply-to: <CAH+w=7Z=5fCZyNNXU8Fw1_OLzXF2P__gmX+pVUb3CcVvnn5JWg@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>
On 4/29/22, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Apr 28, 2022 at 7:17 AM Matthew Martin <phy1729@xxxxxxxxx> wrote:
>>
>> Should have git blamed first. This was changed from 0 to PM_UNSET in
>> 32337 for emulation compatibility. Perhaps the docs should be updated
>> instead?
>
> We should at least be consistent.
>
> These code changes are pretty minor but perhaps shouldn't go in before
> the pending release.
Could you clarify how a script is helped by ERRNO not being listed,
but still being unusable for storing any data? eg,
% ARGV0=sh zsh
$ echo ${(t)ERRNO}
$ echo $ERRNO
$ ERRNO=hi
$ echo $ERRNO
0
$ echo ${(t)ERRNO}
integer-special
When is this good or useful?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author