Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ERRNO is unset until set
- X-seq: zsh-workers 50131
- From: Matthew Martin <phy1729@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: ERRNO is unset until set
- Date: Thu, 28 Apr 2022 09:16:05 -0500
- Archived-at: <https://zsh.org/workers/50131>
- In-reply-to: <Ymqfi9/+1EsEORnA@CptOrmolo.darkstar>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- References: <CA+rB6G+8mEDS=iZztLCTbtK99MqmaG9chi_GWANOQ9HN_U1uMQ@mail.gmail.com> <Ymqfi9/+1EsEORnA@CptOrmolo.darkstar>
On Thu, Apr 28, 2022 at 09:07:07AM -0500, Matthew Martin wrote:
> On Thu, Apr 28, 2022 at 08:18:58AM -0500, Jim wrote:
> diff --git a/Src/params.c b/Src/params.c
> index 27ea82298..c144c25c3 100644
> --- a/Src/params.c
> +++ b/Src/params.c
> @@ -297,7 +297,7 @@ static initparam special_params[] ={
> #define NULL_GSU BR((GsuScalar)(void *)NULL)
> #define IPDEF1(A,B,C) {{NULL,A,PM_INTEGER|PM_SPECIAL|C},BR(NULL),GSU(B),10,0,NULL,NULL,NULL,0}
> IPDEF1("#", pound_gsu, PM_READONLY_SPECIAL),
> -IPDEF1("ERRNO", errno_gsu, PM_UNSET),
> +IPDEF1("ERRNO", errno_gsu, 0),
> IPDEF1("GID", gid_gsu, PM_DONTIMPORT | PM_RESTRICTED),
> IPDEF1("EGID", egid_gsu, PM_DONTIMPORT | PM_RESTRICTED),
> IPDEF1("HISTSIZE", histsize_gsu, PM_RESTRICTED),
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author