On Sat, Feb 19, 2011 at 1:02 PM, Chet Ramey <chet.ramey@case.edu> wrote:
> On 2/15/11 10:16 PM, Clark J. Wang wrote:
> > On Wed, Feb 16, 2011 at 9:59 AM, Chet Ramey <chet.ramey@case.edu
> > <mailto:chet.ramey@case.edu>> wrote:
> >
> > 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.
> >
> > The patch fixed this simple example but it does not work for more
> > complicated scenario:
>
> Yes, it was a quick fix for the immediate problem. Please try the
> attached patch for a more complete solution.
>
>
Works for me. Thanks.
> 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/
>
--
Clark J. Wang