bug-bash
[Top][All Lists]
Advanced

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

Re: test or [ does not handle parentheses as stated in manpage


From: Julian Gilbey
Subject: Re: test or [ does not handle parentheses as stated in manpage
Date: Tue, 6 Sep 2022 14:56:12 +0100

On Tue, Sep 06, 2022 at 09:25:36AM -0400, Chet Ramey wrote:
> On 9/6/22 1:51 AM, Julian Gilbey wrote:
> > On Tue, Sep 06, 2022 at 12:03:20AM +0200, Andreas Schwab wrote:
> > > On Sep 05 2022, Julian Gilbey wrote:
> > > 
> > > > neither did using \(
> > > > instead of (, and neither did putting spaces around the parentheses.
> > > 
> > > You need to do both.
> > 
> > Ah, thanks!  May I suggest that adding this information as a note in
> > the manpage would be very helpful?
> 
> The man page says, in the `test' description:
> 
> "Each operator and operand must be a separate argument."

Yes, but "(" and ")" are not usually considered to be operators or
operands.

   Julian



reply via email to

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