bug-bash
[Top][All Lists]
Advanced

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

Re: Inconsistent quote and escape handling in substitution part of param


From: Chet Ramey
Subject: Re: Inconsistent quote and escape handling in substitution part of parameter expansions.
Date: Wed, 29 Feb 2012 17:44:14 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 2/28/12 11:54 AM, John Kearney wrote:

> the match string and the replace string are exhibiting 2 different
> behaviors.

Yes.  Quotes in the match string are handled like quotes in the %% and ##
pattern removal expansions: they quote special characters for the matcher
and are removed.  The double quotes inhibit the quote removal in the
replacement.  This can be changed, but it's not backwards compatible.


-- 
``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]