hush: more rodust detection of unterminated strings etc;
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 8 Apr 2009 21:51:33 +0000 (21:51 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 8 Apr 2009 21:51:33 +0000 (21:51 -0000)
commit5c090a96f98f5a70af792945aa41ea53f82f39e2
tree1a95c51f459436ca1e66157a708dbb34506e732c
parentffe6f8085170ed6a9780906374ca781e9c4291cb
hush: more rodust detection of unterminated strings etc;
 fix a case where we forget to copy `cmd` text;
 optimize nommu heredoc helper by not passing environment to it;
 add several tests

function                                             old     new   delta
add_till_closing_paren                               256     308     +52
parse_stream                                        2337    2378     +41
add_till_backquote                                    82     111     +29
re_execute_shell                                     269     284     +15
handle_dollar                                        802     812     +10
parse_stream_dquoted                                 316     320      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/0 up/down: 151/0)             Total: 151 bytes
shell/hush.c
shell/hush_test/hush-misc/heredoc_huge.right [new file with mode: 0644]
shell/hush_test/hush-misc/heredoc_huge.tests [new file with mode: 0755]
shell/hush_test/hush-psubst/tick_huge.right [new file with mode: 0644]
shell/hush_test/hush-psubst/tick_huge.tests [new file with mode: 0755]
shell/hush_test/hush-z_slow/leak_all2.right [new file with mode: 0644]
shell/hush_test/hush-z_slow/leak_all2.tests [new file with mode: 0755]