help-bash
[Top][All Lists]
Advanced

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

Re: Is it possible to export a bash array variable?


From: Greg Wooledge
Subject: Re: Is it possible to export a bash array variable?
Date: Sat, 3 Jan 2026 11:55:35 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

On Sat, Jan 03, 2026 at 09:20:42 -0700, Stan Marsh wrote:
> Is it possible?

Not by default.  There's a compile-time option in config-top.h that
you can enable:

/* Define to 1 if you want to be able to export indexed arrays to processes
   using the foo=([0]=one [1]=two) and so on */
/* #define ARRAY_EXPORT 1 */

I've never experimented with it, personally.



reply via email to

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