aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-08-07 22:24:36 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-08-07 22:24:36 +0200
commit33bbb27e45c7c6a0fecb40b3a5aa36aef69825f9 (patch)
treeb1038e6280788218428409acf45158bf0013c5d0 /shell/ash_test/ash-vars
parent58a15cd9d2765e9b9bca6b71ad9713bcc3784821 (diff)
downloadbusybox-w32-33bbb27e45c7c6a0fecb40b3a5aa36aef69825f9.tar.gz
busybox-w32-33bbb27e45c7c6a0fecb40b3a5aa36aef69825f9.tar.bz2
busybox-w32-33bbb27e45c7c6a0fecb40b3a5aa36aef69825f9.zip
ash: fix another bit of var_bash4 bug
But it _still_ doesn't pass! quoted case is a tough nut to crack function old new delta redirect 1281 1286 +5 subevalvar 1141 1142 +1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-vars')
-rw-r--r--shell/ash_test/ash-vars/var_bash4.right2
-rwxr-xr-xshell/ash_test/ash-vars/var_bash4.tests2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash_test/ash-vars/var_bash4.right b/shell/ash_test/ash-vars/var_bash4.right
index 2d4e45be8..600e8532f 100644
--- a/shell/ash_test/ash-vars/var_bash4.right
+++ b/shell/ash_test/ash-vars/var_bash4.right
@@ -11,7 +11,7 @@ Quoted: a*b_\_\z_
11 11
12Source: a\bc 12Source: a\bc
13Replace str: _\\_\z_ 13Replace str: _\\_\z_
14Pattern: single backslash and b: "replace literal b" 14Pattern: single backslash and b: "replace b"
15In assignment: a\_\_z_c 15In assignment: a\_\_z_c
16Unquoted: a\_\_z_c 16Unquoted: a\_\_z_c
17Quoted: a\_\_\z_c 17Quoted: a\_\_\z_c
diff --git a/shell/ash_test/ash-vars/var_bash4.tests b/shell/ash_test/ash-vars/var_bash4.tests
index a6e98fd86..d5470614b 100755
--- a/shell/ash_test/ash-vars/var_bash4.tests
+++ b/shell/ash_test/ash-vars/var_bash4.tests
@@ -30,7 +30,7 @@ v='a\bc'
30echo 'Source: ' "$v" 30echo 'Source: ' "$v"
31echo 'Replace str: ' '_\\_\z_' 31echo 'Replace str: ' '_\\_\z_'
32 32
33echo 'Pattern: ' 'single backslash and b: "replace literal b"' 33echo 'Pattern: ' 'single backslash and b: "replace b"'
34r=${v/\b/_\\_\z_} 34r=${v/\b/_\\_\z_}
35echo 'In assignment:' "$r" 35echo 'In assignment:' "$r"
36echo 'Unquoted: ' ${v/\b/_\\_\z_} 36echo 'Unquoted: ' ${v/\b/_\\_\z_}