Re: nameref to array[@] doesn't always expand to multiple words

2021-01-21 Thread Chet Ramey
On 1/19/21 5:38 AM, Oğuz wrote: See: $ a=(1 2 3) $ b=a[@] $ declare -n c=a[@] $ $ printf '<%s>\n' "${!b}" <1> <2> <3> $ printf '<%s>\n' "$c" <1 2 3> Thanks for the report. This is an easy fix. -- ``The lyf so short, the craft so long to lerne.

Re: nameref to array[@] doesn't always expand to multiple words

2021-01-19 Thread Oğuz
19 Ocak 2021 Salı tarihinde Greg Wooledge yazdı: > On Tue, Jan 19, 2021 at 01:38:13PM +0300, Oğuz wrote: > > $ declare -n c=a[@] > > "However, nameref variables can reference array variables and > subscripted array variables." > > Is a[@] a "subscripted array variable"? > It is, `@' is the

Re: nameref to array[@] doesn't always expand to multiple words

2021-01-19 Thread Greg Wooledge
On Tue, Jan 19, 2021 at 01:38:13PM +0300, Oğuz wrote: > $ declare -n c=a[@] "However, nameref variables can reference array variables and subscripted array variables." Is a[@] a "subscripted array variable"?