aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hush-misc/func_args1.tests: remove "UNFIXED BUG", it does not failDenys Vlasenko2015-11-041-2/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: copy for.tests from ash testsuiteDenys Vlasenko2015-10-292-0/+6
| | | | | | This test passes for hush Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2015-10-131-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix a nommu bug where a part of function body is lost if run in a pipeDenys Vlasenko2015-09-042-0/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: make ${#var} unicode-awareDenys Vlasenko2014-08-132-0/+16
| | | | | | This mimics bash Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix for "while false && true; do echo BUG; break; done". closes 6170Denys Vlasenko2013-04-072-0/+7
| | | | | | | function old new delta run_list 959 941 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: source builtin should override $N only if it has argsDenys Vlasenko2013-03-172-0/+12
| | | | | | | function old new delta builtin_source 174 184 +10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix a corner case of empty "do \n done" structureDenys Vlasenko2011-05-312-0/+5
| | | | | | | | | | | | The structure is: while cmd; do done bash doesn't accept it at all. We were accepting it but execution was buggy. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix misparsing of "... do eval a= ...". Closes 3721Denys Vlasenko2011-05-142-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: document a bug about aborting on sourced file error when non-interactiveDenys Vlasenko2011-03-242-0/+15
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: fix a case where return in sourced file has no effectDenys Vlasenko2011-03-242-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* slightly better wording in commentsDenys Vlasenko2011-02-211-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ash: fix ash-signals/signal8 testcase failureDenys Vlasenko2011-02-212-0/+42
| | | | | | | | | | | function old new delta killcmd 109 224 +115 kill_main 882 910 +28 changepath 194 195 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 144/0) Total: 144 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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