help-bash
[Top][All Lists]
Advanced

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

Re: access exported var


From: Peng Yu
Subject: Re: access exported var
Date: Mon, 16 Jan 2023 11:58:41 -0600

If that is the case, for the same reason, why $Z returns the first
element of the array Z? If $Z returns the first element of the array
Z, then it would be surprising that export Z does not make the first
element available in the environment.

On 1/16/23, Chet Ramey <chet.ramey@case.edu> wrote:
> On 1/16/23 12:59 AM, Peng Yu wrote:
>
>> Why bash can not treat exporting array as
>> exporting the first element?
>
> Because I don't think those are good semantics.
>
> --
> ``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/
>
>


-- 
Regards,
Peng



reply via email to

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