bug-bash
[Top][All Lists]
Advanced

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

Re: Bash parameter expansion (remove largest trailing match, remove larg


From: Robert Elz
Subject: Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work
Date: Sun, 30 Aug 2020 01:30:28 +0700

    Date:        Sat, 29 Aug 2020 13:51:39 -0400
    From:        Bruce Lilly <bruce.lilly@gmail.com>
    Message-ID:  
<CAPyES344Y8SAXmxCXo8DMJt2OpyzKxvBYY7Vsszw81rSgd5jHA@mail.gmail.com>


  | Evidently not enough to see the specifications for pattern matching...

But I did, and I still fail to see anywhere where anything even
suggests that [\057] means anything other than either (which it
should be is less clear) than "a '0', or a '5', or a '7'" or perhaps
the same with the addition of "or a '\'" (that is, in char classes
in glob patterns, it isn't 100% clear whether the \ is a quoting
character, leading to a quoted '0' (which is just a '0') in the
example given, or whether it is just a character.   Doesn't matter
here, neither interpretation is what you seem to expect it to mean.

Further, and probably worse here, is that you didn't bother to provide
your "shellbug" test script, so no-one can see what you're actually
doing, and repeat it for themselves.  If there was an actual bug here,
perhaps one of the people running a pre-release of bash 5.1 could determine
if the bug still exists there or had already been fixed (but there isn't
likely to be any bug here, so that probably doesn't matter).  But without
it we cannot see if you're driving bash correctly to even have an outside
chance of your extended glob patterns working (bash supports some of those
extensions, but not by default).

That lack didn't matter for the NetBSD sh bug report, as it was obvious
you were attempting non-standard extensions, that we simply don't support.
It does matter here.

kre




reply via email to

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