bug-bash
[Top][All Lists]
Advanced

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

Pattern substitution insensitive to case?


From: Davide Baldini
Subject: Pattern substitution insensitive to case?
Date: Wed, 11 Sep 2013 11:12:00 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

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?

My temporary workaround is to run the search-replace function on GNU 'sed' with the unportable 'I' flag to ignore case.

-- Davide



reply via email to

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