Re: Is it possible to export a bash array variable?
From:
Stan Marsh
Subject:
Re: Is it possible to export a bash array variable?
Date:
Mon, 05 Jan 2026 09:30:37 -0700
From: Chet Ramey
Subject: Re: Is it possible to export a bash array variable?
Date: Mon, 5 Jan 2026 10:48:43 -0500
>>Which makes it sound like it would work for assoc arrays as well as
>>indexed. Is that true?
>Yes.
OK. Good.
>>Finally, note that my use case is I'd like an easy way to get the
>>contents of an assoc array into an external program (GAWK). I've
>>developed a couple of kludgey ways to do it (**), but would like something
>>better.
>This is not that. It's only intended to work between bash instances.
Oh, OK. I guess I'll stick with my kludgey workarounds...
=================================================================================
Please do not send me replies to my posts on the list.
I always read the replies via the web archive, so CC'ing to me is unnecessary.
When responding to my posts, please try to refrain from giving bureaucratic
answers.
If you have nothing useful to say, then just click Next and go on.