bug-bash
[Top][All Lists]
Advanced

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

Re: Bash Reference Manual Type


From: Martin Schulte
Subject: Re: Bash Reference Manual Type
Date: Fri, 31 Mar 2023 21:47:03 +0200

Hi Chet!

> >> Thanks for the report. The synopsis should read
> >>
> >> cd [-L|[-P [-e]]] [-@] [dir]
> >           ^       ^
> > But aren't these two brackets just superfluous?
> 
> -L and -P are mutually exclusive, and -e is valid only when -P is
> supplied.

Yes, my feeling was just that | has such a low precedence that the marked pair 
of brackets could be omitted, like in
  id|cut -c1-3
or in the ERE
  ^(-L|-P( -e)?)?$

But situation seems to be different here.

Best regards,

Martin



reply via email to

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