bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]