[Top][All Lists]

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

Re: Bug in ${PARAMETER//PATTERN/STRING} with extglob and Pattern *(PAT

From: Chet Ramey
Subject: Re: Bug in ${PARAMETER//PATTERN/STRING} with extglob and Pattern *(PATTERN-LIST)
Date: Thu, 16 Nov 2000 16:26:15 -0500

Following up to my own message:

> > I just want to strip   *([[:alpha:]]|[:/]) =
> No, you don't.  This will strip everything (remember, the `*' matches 0 or
> more).  And, as you discovered, it exposes some really bad behavior in the
> bash pattern matcher, so it will strip it slowwwwwwwwly.

I found and fixed the problem (and it was just with pattern substitution),
so now bash strips everything very quickly.

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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