bug-bash
[Top][All Lists]
Advanced

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

Re: functions can fully unset local vars in other scopes


From: Chet Ramey
Subject: Re: functions can fully unset local vars in other scopes
Date: Mon, 1 Aug 2022 15:53:15 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 8/1/22 3:38 PM, Robert E. Griffith wrote:
I just finished reading that 2018 discussion and the current discussion.

Its hard for me to understand why this is an issue. kre's use case was

    unset X
    y=$X

He called it 'braindead' for it to do anything expect to assign NULL/empty to Y but I think that is far from true.

Well, that's the crux of the discussion, isn't it?


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



reply via email to

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