Subject: bug#23222: test: incorrect operator-precedence

From: Assaf Gordon <[email-masked]>
Date: Mon, 29 Oct 2018 22:14:42 -0600

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's implementation.
> 
> Thanks for the report.  POSIX indeed says that -a is a binary primary,
> and also says that

With this recent commit:
   test: remove support for the ambigous -a unary operator
 
https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=88c32fa68ee7057744bfb6d41f6e8eb68801306f

test(1) no longer accepts unary "-a".

Closing this item as "fixed".

-assaf