[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bash4.2] ${v//[/} bug?
From: |
Chet Ramey |
Subject: |
Re: [bash4.2] ${v//[/} bug? |
Date: |
Tue, 15 Feb 2011 20:59:37 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 |
On 2/15/11 6:18 AM, Clark J. Wang wrote:
> For following script:
>
> var='[hello'
> echo "${var//[/}"
>
> With bash 4.1 it outputs hello but with 4.2 it outputs [hello . And bash 4.2
> with compat41 on still outputs [hello . Bug? Or Bug fixed?
It's a bug, and I will release a patch. In the meantime, see if the
attached patch does the right thing on your platform.
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/
patmatch.patch
Description: Text Data