summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-parsing
diff options
context:
space:
mode:
authorDenys Vlasenko2009-11-16 03:18:46 +0100
committerDenys Vlasenko2009-11-16 03:18:46 +0100
commitd8389ad76028a536d1869ec163c15fd817dc7b65 (patch)
tree9c38fad7608a9280209745d4ec1fd70d29ff7cca /shell/hush_test/hush-parsing
parent00243b0a1aa7149660e52e748b82a14e5e818150 (diff)
downloadbusybox-d8389ad76028a536d1869ec163c15fd817dc7b65.zip
busybox-d8389ad76028a536d1869ec163c15fd817dc7b65.tar.gz
hush: fix handling of words with braces. +65 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-parsing')
-rw-r--r--shell/hush_test/hush-parsing/brace1.right7
-rwxr-xr-xshell/hush_test/hush-parsing/brace1.tests7
2 files changed, 14 insertions, 0 deletions
diff --git a/shell/hush_test/hush-parsing/brace1.right b/shell/hush_test/hush-parsing/brace1.right
new file mode 100644
index 0000000..8619f45
--- /dev/null
+++ b/shell/hush_test/hush-parsing/brace1.right
@@ -0,0 +1,7 @@
+{abc}
+{
+}
+hush: can't execute '{cmd': No such file or directory
+hush: can't execute '{': No such file or directory
+hush: can't execute '{': No such file or directory
+Done: 127
diff --git a/shell/hush_test/hush-parsing/brace1.tests b/shell/hush_test/hush-parsing/brace1.tests
new file mode 100755
index 0000000..2b45927
--- /dev/null
+++ b/shell/hush_test/hush-parsing/brace1.tests
@@ -0,0 +1,7 @@
+echo {abc}
+echo {
+echo }
+{cmd
+""{
+{""
+echo Done: $?