bug-bash
[Top][All Lists]
Advanced

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

Re: How to match regex in bash? (any character)


From: Chet Ramey
Subject: Re: How to match regex in bash? (any character)
Date: Sun, 02 Oct 2011 21:51:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

On 10/2/11 3:43 PM, Stephane CHAZELAS wrote:

> [*] actually, bash does some (undocumented) preprocessing on the
> regexps, so even the regex(3) reference is misleading here.

Not really.  The words are documented to undergo quote removal, so
they undergo quote removal.  That turns \1 into 1, for instance.

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/



reply via email to

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