bug-coreutils
[Top][All Lists]
Advanced

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

bug#23222: test: incorrect operator-precedence


From: Assaf Gordon
Subject: bug#23222: test: incorrect operator-precedence
Date: Mon, 29 Oct 2018 22:14:42 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

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





reply via email to

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