On Sun, Sep 3, 2023, at 6:08 AM, Dan Jacobson wrote: > please either say > + m=$@ > + n=($@) > or better: > + m='a b c' > + n=('a' 'b' 'c') > or metion on > https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html > the special exception.
This behavior is not specific to $@. bash-5.2$ a=foo bash-5.2$ set -x bash-5.2$ b=("$a") + b=("$a") However... bash-5.2$ declare -a c=("$a") + c=('foo') + declare -a c -- vq