[Top][All Lists]

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

Re: [bash4.2] ${v//[/} bug?

From: Chris F.A. Johnson
Subject: Re: [bash4.2] ${v//[/} bug?
Date: Tue, 15 Feb 2011 21:20:47 -0500 (EST)
User-agent: Alpine 2.00 (LMD 1167 2008-08-23)

On Tue, 15 Feb 2011, Chet Ramey wrote:

On 2/15/11 6:18 AM, Clark J. Wang wrote:
For following script:

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.

   On Mandriva, I get '[hello'; after applying the patch I get 'hello'.

   Chris F.A. Johnson, <http://cfajohnson.com/>
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

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