bug-coreutils
[Top][All Lists]
Advanced

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

bug#69939: test utility bug: "test -a -a -a" and "test -o -o -o" fail


From: Pádraig Brady
Subject: bug#69939: test utility bug: "test -a -a -a" and "test -o -o -o" fail
Date: Sun, 26 Jul 2026 13:20:55 +0100
User-agent: Mozilla Thunderbird Beta

On 25/07/2026 18:54, Collin Funk wrote:
The attached patch should fix the issue. We were treating "-o" and "-a"
as if they could be unary operators, which they cannot be. They are
either a string operand or a binary operator.

Will push it in a bit.

Very nice. This now matches behavior of bash and dash at least.
One nit on the NEWS, I was a bit confused at the double mention
of binary operators, when perhaps unary was more accurate.
Therefore it might be best to simplify the first line to:

  'test' no longer treats '-a' and '-o' as operators when given as
thanks!
Padraig





reply via email to

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