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

Pádraig Brady <[email protected]> Sun, 26 Jul 2026 13:20:55 +0100
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
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