Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1
On 1/16/23 12:52 AM, Kerin Millar wrote:
Bash cannot export arrays. It's not particularly surprising. The value of an
environment variable is a NUL-terminated string; there's no universally safe
delimiter that could be used to join the array's elements.
There is a compile-time option (ARRAY_EXPORT) that you can define to
export arrays. It uses a technique similar to exporting functions. Try it
out if you're curious.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/