help-bash
[Top][All Lists]
Advanced

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

Re: access exported var


From: Leonid Isaev
Subject: Re: access exported var
Date: Mon, 16 Jan 2023 18:47:19 +0000
User-agent: Mutt/1.13.4 (2020-02-15)

On Mon, Jan 16, 2023 at 12:07:25PM -0600, Peng Yu wrote:
> Given arrays cannot be exported, is it better to export nothing or
> export the first element?

You asked a very philosophical (not in a good sense) question: 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]}"...

So, I vote for nothing.

-- 
Leonid Isaev



reply via email to

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