summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-19 13:57:51 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-19 13:57:51 +0000
commitbf25fbccb9b2641c77685ac0a537e8068b6b354a (patch)
tree8be416c9a03d440259007697664566f50f21f93e /shell/hush_test
parenta29c935442869310c4af45c78446b34d370ff53c (diff)
hush: fix handling of } which is not a closing one in { cmd; }
function old new delta parse_stream 2176 2302 +126 builtin_unset 381 387 +6
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-misc/export.right2
-rw-r--r--shell/hush_test/hush-parsing/group1.right1
-rw-r--r--shell/hush_test/hush-parsing/group1.tests1
-rw-r--r--shell/hush_test/hush-vars/var_posix1.right2
-rwxr-xr-xshell/hush_test/hush-vars/var_posix1.tests4
5 files changed, 9 insertions, 1 deletions
diff --git a/shell/hush_test/hush-misc/export.right b/shell/hush_test/hush-misc/export.right
index 4df2e3858..b93e503f8 100644
--- a/shell/hush_test/hush-misc/export.right
+++ b/shell/hush_test/hush-misc/export.right
@@ -1,5 +1,5 @@
export aaa1="'''"
-export aaa2=
+export aaa2=''
export aaa3="'''"'abc'
export aaa4='def'"'''"
export aaa5="'''"'abc'"'''"'def'"'''"
diff --git a/shell/hush_test/hush-parsing/group1.right b/shell/hush_test/hush-parsing/group1.right
new file mode 100644
index 000000000..6a7c4be0a
--- /dev/null
+++ b/shell/hush_test/hush-parsing/group1.right
@@ -0,0 +1 @@
+word} }
diff --git a/shell/hush_test/hush-parsing/group1.tests b/shell/hush_test/hush-parsing/group1.tests
new file mode 100644
index 000000000..f063fbcb3
--- /dev/null
+++ b/shell/hush_test/hush-parsing/group1.tests
@@ -0,0 +1 @@
+{ echo word} }; }
diff --git a/shell/hush_test/hush-vars/var_posix1.right b/shell/hush_test/hush-vars/var_posix1.right
index 373b16ca5..47d52a6c2 100644
--- a/shell/hush_test/hush-vars/var_posix1.right
+++ b/shell/hush_test/hush-vars/var_posix1.right
@@ -22,6 +22,7 @@ babcdcd
babcdcd
ababcdcd
Empty:
+ababcdcd}_tail
ababcd
ababcd
ababcd
@@ -30,4 +31,5 @@ ababcdc
ababcdc
ababcdcd
Empty:
+ababcdcd}_tail
end
diff --git a/shell/hush_test/hush-vars/var_posix1.tests b/shell/hush_test/hush-vars/var_posix1.tests
index 0ce531d69..3069360e1 100755
--- a/shell/hush_test/hush-vars/var_posix1.tests
+++ b/shell/hush_test/hush-vars/var_posix1.tests
@@ -30,6 +30,8 @@ echo ${var#?}
echo ${var##?}
echo ${var#*}
echo Empty:${var##*}
+echo ${var#}}_tail
+# UNFIXED BUG: echo ${var#\}}_tail
echo ${var%cd}
echo ${var%%cd}
@@ -39,5 +41,7 @@ echo ${var%?}
echo ${var%%?}
echo ${var%*}
echo Empty:${var%%*}
+echo ${var#}}_tail
+# UNFIXED BUG: echo ${var#\}}_tail
echo end