diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-07 22:24:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-08-07 22:24:36 +0200 |
commit | 33bbb27e45c7c6a0fecb40b3a5aa36aef69825f9 (patch) | |
tree | b1038e6280788218428409acf45158bf0013c5d0 /shell/ash_test/ash-vars | |
parent | 58a15cd9d2765e9b9bca6b71ad9713bcc3784821 (diff) | |
download | busybox-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.right | 2 | ||||
-rwxr-xr-x | shell/ash_test/ash-vars/var_bash4.tests | 2 |
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 | ||
12 | Source: a\bc | 12 | Source: a\bc |
13 | Replace str: _\\_\z_ | 13 | Replace str: _\\_\z_ |
14 | Pattern: single backslash and b: "replace literal b" | 14 | Pattern: single backslash and b: "replace b" |
15 | In assignment: a\_\_z_c | 15 | In assignment: a\_\_z_c |
16 | Unquoted: a\_\_z_c | 16 | Unquoted: a\_\_z_c |
17 | Quoted: a\_\_\z_c | 17 | Quoted: 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' | |||
30 | echo 'Source: ' "$v" | 30 | echo 'Source: ' "$v" |
31 | echo 'Replace str: ' '_\\_\z_' | 31 | echo 'Replace str: ' '_\\_\z_' |
32 | 32 | ||
33 | echo 'Pattern: ' 'single backslash and b: "replace literal b"' | 33 | echo 'Pattern: ' 'single backslash and b: "replace b"' |
34 | r=${v/\b/_\\_\z_} | 34 | r=${v/\b/_\\_\z_} |
35 | echo 'In assignment:' "$r" | 35 | echo 'In assignment:' "$r" |
36 | echo 'Unquoted: ' ${v/\b/_\\_\z_} | 36 | echo 'Unquoted: ' ${v/\b/_\\_\z_} |