|
| From: | Oğuz |
| Subject: | nameref to array[@] doesn't always expand to multiple words |
| Date: | Tue, 19 Jan 2021 13:38:13 +0300 |
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>
$ printf '<%s>\n' "${!b}$c"
<1>
<2>
<31>
<2>
<3>
This is reproducible on devel too.
Oğuz
| [Prev in Thread] | Current Thread | [Next in Thread] |