help-bash
[Top][All Lists]
Advanced

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

Re: access exported var


From: Lawrence Velázquez
Subject: Re: access exported var
Date: Mon, 16 Jan 2023 20:08:15 -0500
User-agent: Cyrus-JMAP/3.7.0-alpha0-1187-g678636ba0d-fm-20230113.001-g678636ba

On Mon, Jan 16, 2023, at 1:02 PM, Chet Ramey wrote:
> On 1/16/23 12:58 PM, Peng Yu wrote:
>> 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.
>
> Except for everyone who says "I exported the array, why do I only get
> the first element?"

As one data point, confusion about Z implying Z[0] is already
relatively common in the #bash Libera Chat IRC channel.

-- 
vq



reply via email to

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