[Top][All Lists]

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

Re: difference between ${1+"$@"} and "$@"?

From: Eric Blake
Subject: Re: difference between ${1+"$@"} and "$@"?
Date: Thu, 26 Aug 2010 12:19:18 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 08/26/2010 10:28 AM, Eric Blake wrote:
In some Bourne shells, "$@" with an empty set of positional parameters
may expand to a single empty words, instead of no words at all. Hence
the ${1+"$@"} workaround for ancient shells.

Versions of zsh were the most recently afflicted by this, although it
has been fixed there for several years now.


Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

reply via email to

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