Re: No expansions performed while declaring an associative array using a list of keys and values

2020-12-15 Thread Glenn Jackman
On 2020-12-11 11:41, Chet Ramey wrote: > I agree that it would be useful to have > > foo='1 2' > declare -A v1=$( $foo 3 ) > declare -A v2=$( [$foo]=3 ) > > set the two arrays to the same contents I would think that these pairs of invocations would correspond: declare -A v1=$( $foo 3 )

Re: No expansions performed while declaring an associative array using a list of keys and values

2020-12-15 Thread Chet Ramey
On 12/15/20 11:23 AM, Glenn Jackman wrote: On 2020-12-11 11:41, Chet Ramey wrote: I agree that it would be useful to have foo='1 2' declare -A v1=$( $foo 3 ) declare -A v2=$( [$foo]=3 ) set the two arrays to the same contents I would think that these pairs of invocations would correspond:

Re: Request: a command to do a return completely in normal, ie. not subshell

2020-12-15 Thread Dale R. Worley
Budi writes: > Can we have a command to do a return completely (as if it returns from > main function) when it is being in a third nested function call, in > order to get back to shell prompt at once, in normal, ie. not > subshell? You probably want to use the "exit" command, if all of this is in