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

From: Andreas Schwab <[email-masked]>
Date: Fri, 22 Mar 2024 18:24:41 +0100

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, [email-masked]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."