hush: support "break N" and "continue N"
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 28 Jul 2008 23:07:06 +0000 (23:07 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 28 Jul 2008 23:07:06 +0000 (23:07 -0000)
commit6a2d40f239566e886ef76542a75662cee9380a0e
treef2e26f50cae7ddc60112f51174c4d994a9954fea
parentbcb25537d02b50ce26678defcf4f39d0c89f5b3b
hush: support "break N" and "continue N"
 fix non-detection of builtins and applets in "v=break; ...; $v; ..." case
 add testsuite entries for the above

function                                             old     new   delta
builtin_break                                         12      93     +81
run_list                                            1948    1971     +23
builtin_continue                                      12      21      +9
pseudo_exec_argv                                     132     138      +6
builtin_exec                                          23      25      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 5/0 up/down: 121/0)             Total: 121 bytes
shell/hush.c
shell/hush_test/hush-misc/break1.right [new file with mode: 0644]
shell/hush_test/hush-misc/break1.tests [new file with mode: 0755]
shell/hush_test/hush-misc/break2.right [new file with mode: 0644]
shell/hush_test/hush-misc/break2.tests [new file with mode: 0755]
shell/hush_test/hush-misc/break3.right [new file with mode: 0644]
shell/hush_test/hush-misc/break3.tests [new file with mode: 0755]