[Top][All Lists]

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

Re: [PATCH] replace patterns in empty strings

From: Chet Ramey
Subject: Re: [PATCH] replace patterns in empty strings
Date: Sun, 10 May 2015 19:03:25 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 5/6/15 11:16 PM, isabella parakiss wrote:
> Sorry, the previous patch was wrong, it enters an endless loop when
> replacing all the occurrencies in ${var//pat/rep}

Thanks for the patch, this looks right.  I had to make a couple of changes
to match_pattern_{char,wchar}, since your change allows a null string to
match "\", for instance.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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