aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-03 16:49:04 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-03 16:49:04 +0000
commitb6e6556b31e76afdbe956886e45b1168d4a49de6 (patch)
tree91e5660b6751ecd8a28661ccc8f84419cd3b13ad /shell/hush_test
parent240c255d8b349f06c94cb3afc24c85b6c38b6608 (diff)
downloadbusybox-b6e6556b31e76afdbe956886e45b1168d4a49de6.tar.gz
hush: improve parse_stream: does not require parsing context struct;
cleans up on syntax errors (we used to leak memory in this case); much simplified interface to the rest of hush. function old new delta parse_stream 1204 1447 +243 done_word 658 669 +11 static_get 22 28 +6 builtin_source 84 89 +5 parse_and_run_file 27 30 +3 parse_and_run_string 31 27 -4 builtin_eval 55 50 -5 hush_main 991 985 -6 free_pipe_list 39 31 -8 free_pipe 210 189 -21 expand_variables 2242 2199 -43 parse_and_run_stream 289 153 -136 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/7 up/down: 268/-223) Total: 45 bytes
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-misc/syntax_err_negate.right2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush_test/hush-misc/syntax_err_negate.right b/shell/hush_test/hush-misc/syntax_err_negate.right
index d1e7654f5..8c7010629 100644
--- a/shell/hush_test/hush-misc/syntax_err_negate.right
+++ b/shell/hush_test/hush-misc/syntax_err_negate.right
@@ -1,2 +1,2 @@
bash 3.2 fails this
-hush: syntax error
+hush: syntax error: ! ! command