bug-bash
[Top][All Lists]
Advanced

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

Re: Passing Information To A Function


From: Paul Jarc
Subject: Re: Passing Information To A Function
Date: Fri, 14 Dec 2001 03:47:20 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

"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



reply via email to

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