From d8389ad76028a536d1869ec163c15fd817dc7b65 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 16 Nov 2009 03:18:46 +0100 Subject: hush: fix handling of words with braces. +65 bytes Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-parsing/brace1.right | 7 +++++++ shell/hush_test/hush-parsing/brace1.tests | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 shell/hush_test/hush-parsing/brace1.right create mode 100755 shell/hush_test/hush-parsing/brace1.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-parsing/brace1.right b/shell/hush_test/hush-parsing/brace1.right new file mode 100644 index 000000000..8619f45d3 --- /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 000000000..2b45927c0 --- /dev/null +++ b/shell/hush_test/hush-parsing/brace1.tests @@ -0,0 +1,7 @@ +echo {abc} +echo { +echo } +{cmd +""{ +{"" +echo Done: $? -- cgit v1.2.3