|
From: | Allan McRae |
Subject: | Re: [bash4.2] ${v//[/} bug? |
Date: | Wed, 16 Feb 2011 11:29:45 +1000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101230 Lightning/1.0b2 Lanikai/3.1.7 |
On 16/02/11 11:20, Chet Ramey 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.
Just to rule out it being Linux specifc, I get the expected "hello" on Arch Linux.
Allan
[Prev in Thread] | Current Thread | [Next in Thread] |