bug-bash
[Top][All Lists]
Advanced

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

Re: Bash extended glob - Negation


From: Robert Elz
Subject: Re: Bash extended glob - Negation
Date: Fri, 30 Apr 2021 14:41:16 +0700

    Date:        Fri, 30 Apr 2021 12:28:32 +0530
    From:        Inian Vasanth <inian.vasanth@gmail.com>
    Message-ID:  
<CADNZbLRBuvtihJC-EsY0NKeMsVibTKvgpQ33qve_g-yZ=R3u_Q@mail.gmail.com>

  | Why is it the case? Shouldn't the glob expression just serve the !(8)
  | pattern to exclude and simply do a no-op for the extra * character?

The '*' means "sero or more of the preceding", the preceding was
"not an 8" so anything which ends with zero (or more) not 8's matches.
Since everything ends with 0 (or more) not 8's (or not anything elses)
everything matches.

kre




reply via email to

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