ash,hush: properly handle ${v//pattern/repl} if pattern starts with /
Closes 2695 function old new delta parse_dollar 762 790 +28 subevalvar 1258 1267 +9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 37/0) Total: 37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-dev-ram
|
||||
/dev-am
|
||||
3
shell/ash_test/ash-vars/var_bash_pattern_starting_with_slash.tests
Executable file
3
shell/ash_test/ash-vars/var_bash_pattern_starting_with_slash.tests
Executable file
@@ -0,0 +1,3 @@
|
||||
v=/dev/ram
|
||||
echo ${v////-}
|
||||
echo ${v///r/-}
|
||||
Reference in New Issue
Block a user