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 )
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:
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