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

Re: ERRNO is unset until set



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