help-bash
[Top][All Lists]
Advanced

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

Re: Sourcing array declarations from a function


From: Chet Ramey
Subject: Re: Sourcing array declarations from a function
Date: Thu, 26 Nov 2020 12:58:15 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.3

On 11/26/20 12:17 PM, Marco Ippolito wrote:
> I would not expect this asymmetry of visibility, what explains it?

Using `declare' in a function makes the declared variables local.

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