diff options
author | Denis Vlasenko | 2008-07-06 10:01:13 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-07-06 10:01:13 +0000 |
commit | 733e3fbc2fb6eb0195cbcc02724d186b1b820df6 (patch) | |
tree | 81ba6758a3b20c84b56e42473d427368b9180c0d /shell/hush_test | |
parent | d48e81f0cda73aca49cd852212a62e879cf35b86 (diff) | |
download | busybox-733e3fbc2fb6eb0195cbcc02724d186b1b820df6.zip busybox-733e3fbc2fb6eb0195cbcc02724d186b1b820df6.tar.gz |
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
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-misc/for_with_keywords.right | 4 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/for_with_keywords.tests | 2 |
2 files changed, 6 insertions, 0 deletions
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 0000000..eb04e9a --- /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 0000000..a8b8e42 --- /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: $? |