Re: dash bug which is affecting release goal
* William Pitcock:
> On Sun, 2008-02-24 at 14:00 +0000, Ian Jackson wrote:
>> John H. Robinson, IV writes ("Re: dash bug which is affecting release goal"):
>> > Pierre Habouzit wrote:
>> > > echo() { /bin/echo "$@" }
>> >
>> > echo() { /bin/echo ${1+"$@"}; }
>> >
>> > I believe you mean.
>>
>> Why ?!
>
> Because stand-alone $@ is undefined when used in this case. By using ${1
> +"$@"}, it is ensured that $@ always starts with $1.
>
> What a load of POSIX.
| If there are no positional parameters, the expansion of '@' shall
| generate zero fields, even when '@' is double-quoted.
Given that requirement, Sergei's explanation as an ancient bash bug
makes more sense.
Reply to: