From 733e3fbc2fb6eb0195cbcc02724d186b1b820df6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 6 Jul 2008 10:01:13 +0000 Subject: hush: support "for if in do done then; do echo $if; done" case function old new delta done_pipe 83 95 +12 parse_stream 1758 1764 +6 done_word 674 647 -27 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 18/-27) Total: -9 bytes --- shell/hush_test/hush-misc/for_with_keywords.right | 4 ++++ shell/hush_test/hush-misc/for_with_keywords.tests | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 shell/hush_test/hush-misc/for_with_keywords.right create mode 100755 shell/hush_test/hush-misc/for_with_keywords.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-misc/for_with_keywords.right b/shell/hush_test/hush-misc/for_with_keywords.right new file mode 100644 index 000000000..eb04e9af9 --- /dev/null +++ b/shell/hush_test/hush-misc/for_with_keywords.right @@ -0,0 +1,4 @@ +do +done +then +OK: 0 diff --git a/shell/hush_test/hush-misc/for_with_keywords.tests b/shell/hush_test/hush-misc/for_with_keywords.tests new file mode 100755 index 000000000..a8b8e4264 --- /dev/null +++ b/shell/hush_test/hush-misc/for_with_keywords.tests @@ -0,0 +1,2 @@ +for if in do done then; do echo $if; done +echo OK: $? -- cgit v1.2.3