bug-bash
[Top][All Lists]
Advanced

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

Re: Bash $@ expansion undocumentedly ignoring '


From: DJ Mills
Subject: Re: Bash $@ expansion undocumentedly ignoring '
Date: Wed, 21 Mar 2012 18:31:07 -0400

On Wed, Mar 21, 2012 at 10:24 AM, Andreas Marschke
<andreas.marschke@googlemail.com> wrote:
> Dear Maintainers of bash,
>
> it has come to my attention that bash is unexpectedly removing quotes
> from parameters given to a script if read from within the
> script. See attached shell-script for a full explanation.
>
> --
> Cheers,
>
> Andreas Marschke

You must use "$@", never $@. Quote ALL of your expansions. See
http://mywiki.wooledge.org/Arguments and
http://mywiki.wooledge.org/Quotes for more information on what's going
on here.



reply via email to

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