tags 23222 fixed
close 23222
stop
On 2016-04-05 9:09 a.m., Eric Blake wrote:
tag 23222 confirmed
thanks
On 04/05/2016 05:57 AM, Mattias Andrée wrote:
Failing test-case #1:
./test -n -a -n
fails and outputs
./test: extra argument ‘-n’
Expected behaviour is silent success, as seen in
Bash
On 04/05/2016 12:36 PM, Mattias Andrée wrote:
>> Sorry, but here, you're wrong. POSIX states:
>>
>> "4 arguments:
>> If $1 is '!', negate the three-argument test of
>> $2, $3, and $4."
>>
>> which means this parses as:
>>
>> test ! \( '' -a '' \)
>>
>
> XSI-conformant systems shall use
On Tue, 5 Apr 2016 09:09:40 -0600
Eric Blake wrote:
> tag 23222 confirmed
> thanks
>
> On 04/05/2016 05:57 AM, Mattias Andrée wrote:
> > Failing test-case #1:
> >
> > ./test -n -a -n
> >
> > fails and outputs
> >
> > ./test: extra argument ‘-n’
> >
> > Expected behaviour is silent success,
tag 23222 confirmed
thanks
On 04/05/2016 05:57 AM, Mattias Andrée wrote:
> Failing test-case #1:
>
> ./test -n -a -n
>
> fails and outputs
>
> ./test: extra argument ‘-n’
>
> Expected behaviour is silent success, as seen in
> Bash's implementation.
Thanks for the report. POSIX indeed says
Failing test-case #1:
./test -n -a -n
fails and outputs
./test: extra argument ‘-n’
Expected behaviour is silent success, as seen in
Bash's implementation.
Explanation: -a has higher precedence than -n.
Therefore the test is equivalent to
./test -n && ./test -n. ./test -n shall succeed
becau