bug-bash
[Top][All Lists]
Advanced

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

Re: export value for local array shadowing an exported var


From: Chet Ramey
Subject: Re: export value for local array shadowing an exported var
Date: Thu, 13 Nov 2025 12:52:39 -0500
User-agent: Mozilla Thunderbird

On 11/12/25 6:35 AM, Grisha Levit wrote:
If a local array variable shadows an exported variable from a higher
scope, that variable is usually removed from the export environment.

However, if an external command is executed between the last time an
exported variable was modified and the local array is created, the
existing variable remains in the environment until the next time that
an exported variable is modified.

Thanks for the report. It was this specific case, and a pretty easy fix.

Chet

--
``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]