bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing ENVIRON causes SIGFPE when first var is numeric


From: David Arroyo
Subject: Re: accessing ENVIRON causes SIGFPE when first var is numeric
Date: Wed, 15 Jun 2022 15:03:54 +0000
User-agent: Cyrus-JMAP/3.7.0-alpha0-712-gb9e94258b0-fm-20220610.001-gb9e94258

On Wed, Jun 15, 2022, at 14:56, arnold@skeeve.com wrote:
> Wolfgang Laun <wolfgang.laun@gmail.com> wrote:
>
>> SETENV(3) appears to be the function that determines what may or may not be
>> in the Environment. From the man page's ERROR section: EINVAL name is NULL,
>> points to a string of length 0, or contains an '=' character. Names weirder
>> than a digit should be possible.
>>
>> Wolfgang
>
> So 0=foo is apparently valid, but will probably give shells a fit.

Good to know. I looked and found that the variable was set by
the `exec` command of the `execline` suite of tools[1], which I
wrote my startup script in.

And I've verified that Andy's patch resolves the issue.

Thanks again,
David

[1]: https://skarnet.org/software/execline/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]