summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-26 11:25:19 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-26 11:25:19 +0000
commit5b7589eb27e748a3d281c0341219cf7435e8b4f1 (patch)
treeb9565d8d331207ed37a3b9c0f654b500839d8ef6 /shell/hush_test
parent80e57eb7d525803bb776e8294483141756b2b2ef (diff)
downloadbusybox-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')
-rw-r--r--shell/hush_test/hush-arith/arith.right6
-rw-r--r--shell/hush_test/hush-vars/var_posix1.right1
-rwxr-xr-xshell/hush_test/hush-vars/var_posix1.tests1
3 files changed, 5 insertions, 3 deletions
diff --git a/shell/hush_test/hush-arith/arith.right b/shell/hush_test/hush-arith/arith.right
index 8cde0ee53..83155fb03 100644
--- a/shell/hush_test/hush-arith/arith.right
+++ b/shell/hush_test/hush-arith/arith.right
@@ -63,9 +63,9 @@ hush: error in arithmetic
6340 40 6340 40
64hush: error in arithmetic 64hush: error in arithmetic
65hush: divide by 0 65hush: divide by 0
66hush: can't exec 'let': No such file or directory 66hush: can't execute 'let': No such file or directory
67hush: error in arithmetic 67hush: error in arithmetic
68hush: can't exec 'let': No such file or directory 68hush: can't execute 'let': No such file or directory
69abc 69abc
70def 70def
71ghi 71ghi
@@ -135,4 +135,4 @@ hush: error in arithmetic
13542 13542
13642 13642
13742 13742
138hush: can't exec 'a[b[c]d]=e': No such file or directory 138hush: can't execute 'a[b[c]d]=e': No such file or directory
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
32ababcdcd 32ababcdcd
33Empty: 33Empty:
34ababcdcd}_tail 34ababcdcd}_tail
35ababcdcd
35end 36end
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%*}
43echo Empty:${var%%*} 43echo Empty:${var%%*}
44echo ${var#}}_tail 44echo ${var#}}_tail
45# UNFIXED BUG: echo ${var#\}}_tail 45# UNFIXED BUG: echo ${var#\}}_tail
46echo ${var%\\*}
46 47
47echo end 48echo end