[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bash4.2] ${v//[/} bug?
From: |
Clark J. Wang |
Subject: |
Re: [bash4.2] ${v//[/} bug? |
Date: |
Wed, 16 Feb 2011 10:06:27 +0800 |
On Wed, Feb 16, 2011 at 9:20 AM, Chet Ramey <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?
>
> This is strange. It echoes "hello" on Mac OS X, but "[hello" on
> Red Hat. I'll have to take a look at where the difference might be.
>
> I tested bash 4.2 on Debian 6.0. And bash 4.1 behaves the same on Linux and
Mac OS X (10.4 PPC).
> 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