[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: access exported var
From: |
Chet Ramey |
Subject: |
Re: access exported var |
Date: |
Mon, 16 Jan 2023 12:43:34 -0500 |
User-agent: |
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/
- Re: access exported var, (continued)
- Re: access exported var, Peng Yu, 2023/01/16
- Re: access exported var, Lawrence Velázquez, 2023/01/16
- 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 <=
Re: access exported var, Lawrence Velázquez, 2023/01/16