|
From: | Jan Schampera |
Subject: | Substitution PE parsed wrong or doesn't work correctly |
Date: | Thu, 15 Jul 2010 22:09:16 +0200 |
User-agent: | Mozilla-Thunderbird 2.0.0.24 (X11/20100329) |
Hello, Tested versions: - 4.1.2(1)-release - 3.2.39(1)-release Reproduce by: string="1/2 3=" echo ${string//[= /]} Expected result: 123 Actual result: 1/2 3= Workaround: Escape the "inner" slash with a backslash.Within a bracket expression, the slash should lose its special meaning. It looks like the construct is incorrectly parsed (because it uses slashes itself), but I may be wrong, I didn't inspect the code.
Regards, Jan
[Prev in Thread] | Current Thread | [Next in Thread] |