bug-bash
[Top][All Lists]
Advanced

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

Re: Pattern substitution insensitive to case?


From: Chet Ramey
Subject: Re: Pattern substitution insensitive to case?
Date: Wed, 11 Sep 2013 09:19:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

On 9/11/13 5:12 AM, Davide Baldini wrote:
> Hi,
> 
> Bash doesn't seem to provide a handy way to perform search-and-replace on
> strings in a case-insensitive manner.
> 
> The parameter expansion "${parameter/pattern/string}" is not influenced by
> the shell options "nocaseglob" and "nocasematch", at least in Bash version
> 4.2.37. Is this intended?

Yes, neither option applies to pattern replacement word expansion.  I will
consider that extension for a future version of bash.

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]