aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* echo: do not retry on write errorsDenys Vlasenko2011-02-072-0/+9
| | | | | | | | | | | | | function old new delta echo_main 297 336 +39 stpcpy - 22 +22 run_pipe 1561 1566 +5 pseudo_exec_argv 187 192 +5 hush_exit 75 80 +5 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix improper handling of newline and hash chars in few corner casesDenys Vlasenko2010-11-222-0/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* hush: add support for "set -o pipefail"Denys Vlasenko2010-11-142-0/+85
| | | | | | | | | | | | function old new delta checkjobs 467 517 +50 builtin_set 259 286 +27 o_opt_strings - 10 +10 hush_main 1011 1013 +2 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 89/0) Total: 89 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix handling of \" in quoted/unquoted `cmd`Denys Vlasenko2010-09-122-0/+16
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* hush: fix another corner case with backslashes in heredocsDenys Vlasenko2010-09-062-0/+16
| | | | | | | function old new delta parse_stream 2395 2432 +37 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* hush: fix backslash and terminator handling in <<[-]["]heredoc["]Denys Vlasenko2010-09-062-0/+81
| | | | | | | | | | | function old new delta parse_stream 2339 2395 +56 expand_pseudo_dquoted 104 118 +14 parse_stream_dquoted 296 300 +4 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 74/0) Total: 74 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: trailing empty lines removedDenys Vlasenko2010-07-261-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2010-01-251-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: two NOMMU fixes for bugs 877 and 883Denys Vlasenko2010-01-122-0/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix exitcodes of killed processesDenys Vlasenko2010-01-042-0/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix handling of empty argumentsDenys Vlasenko2009-10-182-0/+15
| | | | | | | | | | | | function old new delta builtin_exec 25 83 +58 parse_stream 2242 2261 +19 run_pipe 1782 1787 +5 static.pseudo_null_str - 3 +3 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/0 up/down: 85/0) Total: 85 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: do not process options after non-option argsDenys Vlasenko2009-08-202-0/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix \<newline> handling on NOMMUDenys Vlasenko2009-08-122-0/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add support for local builtinDenys Vlasenko2009-06-034-0/+29
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* make compound.tests executableDenys Vlasenko2009-05-231-0/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix problems with case in subshells and with "case esac"Denys Vlasenko2009-05-232-6/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush_test: add some pathological compound list testsMike Frysinger2009-05-212-0/+35
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: test for subshell function syntaxMike Frysinger2009-05-212-0/+12
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush_test: add subshelled case testsMike Frysinger2009-05-211-0/+12
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* TODO: add someDenys Vlasenko2009-05-131-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix bug where in "var=val func" var's value is not visible in funcDenys Vlasenko2009-05-042-0/+6
| | | | | | | | | | | | | | | | | | | function old new delta unset_local_var - 168 +168 set_vars_all_and_save_old - 87 +87 get_ptr_to_local_var - 77 +77 free_strings_and_unset - 53 +53 builtin_export 266 274 +8 get_local_var_value 31 33 +2 putenv_all 27 - -27 free_strings_and_unsetenv 53 - -53 get_local_var 68 - -68 run_list 2475 2350 -125 builtin_unset 380 220 -160 ------------------------------------------------------------------------------ (add/remove: 4/3 grow/shrink: 2/2 up/down: 395/-433) Total: -38 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix multiple redirections of the same fd (bug 227)Denys Vlasenko2009-05-022-0/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: nommu fix for function passingDenis Vlasenko2009-04-262-0/+9
|
* hush: export -n supportDenis Vlasenko2009-04-202-0/+47
| | | | | | | | function old new delta builtin_export 206 256 +50 set_local_var 248 265 +17 expand_variables 2204 2203 -1
* hush: add two testcasesDenis Vlasenko2009-04-202-0/+15
|
* hush: fix stdin of backgrounded pipe Denis Vlasenko2009-04-202-0/+17
| | | | | | function old new delta run_list 2450 2502 +52
* hush: fix handling of } which is not a closing one in { cmd; }Denis Vlasenko2009-04-191-1/+1
| | | | | | | function old new delta parse_stream 2176 2302 +126 builtin_unset 381 387 +6
* hush: return builtin by Bayram Kurumahmut (kbayram AT ubicom.com)Denis Vlasenko2009-04-172-0/+12
| | | | | ~+200 bytes
* hush: add function testsDenis Vlasenko2009-04-104-0/+36
|
* hush: fix some TODOs. TODO in export builting: +250 bytes.Denis Vlasenko2009-04-102-0/+13
| | | | | | | | | | | | | | | | | | simplify unexpected EOF handling. function old new delta builtin_export 117 374 +257 o_reset_to_empty_unquoted - 21 +21 parse_stream 1926 1929 +3 syntax_error_unterm_ch 31 32 +1 handle_dollar 644 641 -3 parse_stream_dquoted 307 298 -9 add_till_backquote 106 97 -9 add_till_closing_paren 303 286 -17 o_reset 21 - -21 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/4 up/down: 282/-59) Total: 223 bytes
* hush: tighten up "for" variable name check.Denis Vlasenko2009-04-105-11/+27
| | | | | | | | | | Add TODOs. Disable redir4.right part where we differ from bash. It is not a bug per standards. Add a few tests, one is in hush-bugs section: and_or_and_backgrounding.right. It will likely bite users in real world usage.
* hush: readability improvements.Denis Vlasenko2009-04-104-0/+113
| | | | | | fix some more obscure bugs. a new redir4.tests is known to fail.
* hush: fix EXIT trap recursion case; check redirection failuresDenis Vlasenko2009-04-094-0/+28
| | | | | | | | | | | function old new delta run_pipe 1299 1328 +29 hush_exit 90 102 +12 hush_main 1172 1179 +7 run_list 1226 1225 -1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 48/-1) Total: 47 bytes
* hush: more rodust detection of unterminated strings etc;Denis Vlasenko2009-04-082-0/+12
| | | | | | | | | | | | | | | | | 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
* hush: echo \2>file fixDenis Vlasenko2009-04-086-0/+7
|
* hush: fix heredoc expansion of $var and `cmd`Denis Vlasenko2009-04-074-0/+21
| | | | | | | | | | | | | | function old new delta expand_pseudo_dquoted - 104 +104 setup_heredoc 215 275 +60 done_word 669 691 +22 parse_stream 1899 1902 +3 setup_redirects 196 191 -5 free_pipe 189 183 -6 expand_variables 2349 2229 -120 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 3/3 up/down: 189/-131) Total: 58 bytes
* add a pathological test case for here doc related to eof marker and other ↵Mike Frysinger2009-04-072-0/+17
| | | | ugly corner cases
* hush: heredoc support, based on patch by Mike Frysinger (vapier AT gentoo.org)Denis Vlasenko2009-04-073-11/+25
| | | | | | | | | | | | | | | | some TODOs are to be attacked later function old new delta parse_stream 1461 1866 +405 parse_redirect - 265 +265 setup_heredoc - 116 +116 setup_redirects 151 196 +45 builtin_exit 49 47 -2 redirect_opt_num 61 55 -6 setup_redirect 212 - -212 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/2 up/down: 831/-220) Total: 611 bytes
* hush: fix "if false; then...fi" exitcode;Denis Vlasenko2009-04-062-0/+3
| | | | | trim "keyword"-less hush by 10 bytes
* make hush-misc/*.tests executableDenis Vlasenko2009-04-064-0/+0
|
* hush: fix a bunch of obscure while/until/continue bugsDenis Vlasenko2009-04-068-0/+27
| | | | | | | | | | function old new delta run_list 1159 1214 +55 done_pipe 106 123 +17 done_command 86 98 +12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 84/0) Total: 84 bytes
* *.tests should be executableDenis Vlasenko2009-04-061-0/+0
|
* move hush-parsing/and-or.tests to hush-misc/*Denis Vlasenko2009-04-062-0/+52
| | | | | (which probably needs to be renamed to hush-execution...)
* add tests for basic fd open/close/dupeMike Frysinger2009-04-062-0/+36
|
* fix redir1 tests -- usleep isnt standard in $PATHMike Frysinger2009-04-061-1/+3
|
* hush: fix "var=val >file" not creating fileDenis Vlasenko2009-04-042-0/+42
| | | | | | | | | function old new delta static.null_ptr - 4 +4 run_list 2018 2020 +2 handle_dollar 667 626 -41 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 6/-41) Total: -35 bytes
* hush: finally make `cmd` safe on NOMMUDenis Vlasenko2009-04-031-0/+2
| | | | | | | | | | function old new delta generate_stream_from_string - 157 +157 expand_variables 2050 2003 -47 generate_stream_from_list 139 - -139 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/1 up/down: 157/-186) Total: -29 bytes
* hush: improve parse_stream: does not require parsing context struct;Denis Vlasenko2009-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* hush: fix mishandling of a'b'c=fff as assignments. They are not.Denis Vlasenko2008-08-044-0/+57
| | | | | | | | | | | | | | function old new delta parse_stream 1920 2004 +84 done_word 715 752 +37 parse_and_run_stream 328 333 +5 builtin_exec 25 29 +4 pseudo_exec_argv 138 139 +1 run_list 2006 1999 -7 is_assignment 215 134 -81 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/2 up/down: 131/-88) Total: 43 bytes
* hush: fix "case ... in <newline> word)..."Denis Vlasenko2008-07-312-0/+9
|