bug-bash
[Top][All Lists]
Advanced

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

Re: printf %q represents null argument as empty string.


From: John Kearney
Subject: Re: printf %q represents null argument as empty string.
Date: Sat, 12 Jan 2013 21:16:18 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

Am 12.01.2013 20:40, schrieb Chet Ramey:
> On 1/12/13 9:48 AM, John Kearney wrote:
>
>> anyway now we have a point I disagree that
>> "${@}"
>>
>> should expand to 0 or more words, from the documentation it should be 1
>> or more. At least that is how I read  that paragragh. IT says it will
>> split the word not make the word vanish.
>> so I had to test and it really does how weird, is that in the posix spec?.
> Yes.  Here's the relevant sentence from the man page description of $@:
>
>       When  there  are no positional parameters, "$@" and $@ expand to
>       nothing (i.e., they are removed).
>
> Posix says something similar:
>
>       If there are no positional parameters, the expansion of '@' shall
>       generate zero fields, even when '@' is double-quoted.
>
> Chet
thanks one lives and learns.





reply via email to

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