bug-bash
[Top][All Lists]
Advanced

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

Re: SHELLOPTS environment variable causes shell options to cascade


From: Chet Ramey
Subject: Re: SHELLOPTS environment variable causes shell options to cascade
Date: Mon, 6 Jan 2025 09:53:40 -0500
User-agent: Mozilla Thunderbird

On 1/5/25 5:10 AM, Koichi Murase wrote:

I confirmed this behavior, which I think is unreasonable.

   $ (export SHELLOPTS; set -u; bash +u -c 'echo $unset')
   bash: line 1: unset: unbound variable

I think an option explicitly specified in the command-line arguments
should take precedence over the options specified in the
environment.

Maybe, but SHELLOPTS has never behaved like that.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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