"Chris F.A. Johnson" <chris@rogers.com> wrote:
> On Thu, 13 Dec 2001, Paul Jarc wrote:
>> "Chris F.A. Johnson" <chris@rogers.com> wrote:
>>> xxx_var=( `eval echo \\${$1[@]}` )
>> Your unquoted [@] could be pathname-expanded to something different.
>
> Under what circumstances is @ exapanded, other than $@ and in array
> expansion?
There's notheng special about "@" here; [] is the special part. If
"$1" is "foo", and if a file named "${foo@}" exists, then as an
unquoted argument to eval, the above will be expanded as "${foo@}",
which eval will choke on.
paul