[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 17:08:36 -0500 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-1187-g678636ba0d-fm-20230113.001-g678636ba |
On Mon, Jan 16, 2023, at 3:15 PM, Peng Yu wrote:
> On 1/16/23, Leonid Isaev <leonid.isaev@ifax.com> wrote:
>> if I know that an array "${a[@]}" can't be exported, and want to
>> export its 1st element, I will do just that: export a variable
>> "${a[0]}"...
>
> Then, you are then suggesting ${Z[0]} instead $Z for the first element
> of the Z array, for the same logic.
>
> I'd rather have $Z as a shorthand notation of ${Z[0]} for the fewer
> keystrokes. Bash is for command line interaction, every keystroke
> counts.
Not everyone agrees with your priorities and opinion on what bash
is "for". One could say (and I do) that brevity should not take
unqualified precedence over clarity and explicitness.
> If you want verbosity, you can use java.
This suggestion is unhelpful. "Verbosity" aside, Java and bash are
tailored for different use cases.
--
vq
- Re: access exported var, (continued)
- Re: access exported var, Chet Ramey, 2023/01/16
- Re: access exported var, Peng Yu, 2023/01/16
- Re: access exported var, Chet Ramey, 2023/01/16
- Re: access exported var, Peng Yu, 2023/01/16
- Re: access exported var, Leonid Isaev, 2023/01/16
- Re: access exported var, Peng Yu, 2023/01/16
- Re: access exported var,
Lawrence Velázquez <=
- Re: access exported var, Peng Yu, 2023/01/16
- Re: access exported var, Peng Yu, 2023/01/16
- Re: access exported var, Lawrence Velázquez, 2023/01/16
- Message not available
- Re: access exported var, Peng Yu, 2023/01/16
- Re: access exported var, Lawrence Velázquez, 2023/01/16
- Re: access exported var, Matthew Mueller, 2023/01/16
- Re: access exported var, Greg Wooledge, 2023/01/16
- Re: access exported var, Matthew Mueller, 2023/01/16
Re: access exported var, Chet Ramey, 2023/01/16
Re: access exported var, Lawrence Velázquez, 2023/01/16