diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-26 11:25:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-26 11:25:19 +0000 |
commit | 5b7589eb27e748a3d281c0341219cf7435e8b4f1 (patch) | |
tree | b9565d8d331207ed37a3b9c0f654b500839d8ef6 /shell/hush_test/hush-vars | |
parent | 80e57eb7d525803bb776e8294483141756b2b2ef (diff) | |
download | busybox-w32-5b7589eb27e748a3d281c0341219cf7435e8b4f1.tar.gz busybox-w32-5b7589eb27e748a3d281c0341219cf7435e8b4f1.tar.bz2 busybox-w32-5b7589eb27e748a3d281c0341219cf7435e8b4f1.zip |
hush: fix SEGV in % expansion
function old new delta
expand_variables 2203 2217 +14
Diffstat (limited to 'shell/hush_test/hush-vars')
-rw-r--r-- | shell/hush_test/hush-vars/var_posix1.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-vars/var_posix1.tests | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_posix1.right b/shell/hush_test/hush-vars/var_posix1.right index 47d52a6c2..e6cba2758 100644 --- a/shell/hush_test/hush-vars/var_posix1.right +++ b/shell/hush_test/hush-vars/var_posix1.right | |||
@@ -32,4 +32,5 @@ ababcdc | |||
32 | ababcdcd | 32 | ababcdcd |
33 | Empty: | 33 | Empty: |
34 | ababcdcd}_tail | 34 | ababcdcd}_tail |
35 | ababcdcd | ||
35 | end | 36 | end |
diff --git a/shell/hush_test/hush-vars/var_posix1.tests b/shell/hush_test/hush-vars/var_posix1.tests index 3069360e1..c1f64094d 100755 --- a/shell/hush_test/hush-vars/var_posix1.tests +++ b/shell/hush_test/hush-vars/var_posix1.tests | |||
@@ -43,5 +43,6 @@ echo ${var%*} | |||
43 | echo Empty:${var%%*} | 43 | echo Empty:${var%%*} |
44 | echo ${var#}}_tail | 44 | echo ${var#}}_tail |
45 | # UNFIXED BUG: echo ${var#\}}_tail | 45 | # UNFIXED BUG: echo ${var#\}}_tail |
46 | echo ${var%\\*} | ||
46 | 47 | ||
47 | echo end | 48 | echo end |