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

Re: ERRNO is unset until set



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