[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why are \d and \D not implemented but don't throw errors in regex?
From: |
Chet Ramey |
Subject: |
Re: why are \d and \D not implemented but don't throw errors in regex? |
Date: |
Sat, 07 Dec 2013 23:19:33 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 |
On 12/7/13, 6:33 PM, Peter Cordes wrote:
> I agree your complaint seems valid, but it's the behaviour of the
> regex engine built into GNU libc (in this case). Bash on other
> platforms would use the regex engine in their system libc. (Unless
> I'm mistaken in my assumption that bash doesn't have its own regex
> engine.)
This is correct. Bash uses whatever Posix regexp engine is in libc.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/