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: Andreas Schwab
Subject: bug#69939: test utility bug: "test -a -a -a" and "test -o -o -o" fail
Date: Fri, 22 Mar 2024 18:24:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

On Mär 22 2024, Pádraig Brady wrote:

> Though I see bash 5.2.26 has issue with it :/
>
>   $ test \( -a \) -a \( -a \)
>   bash: test: `)' expected
>
> bash doesn't like the -a in particular, and is ok with other strings:

That's because in bash -a is ambiguous:

      -a FILE        True if file exists.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

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