aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hush: fix exec builtin in a better way (+ "glob in exec" bug fixed)Denys Vlasenko2009-10-191-3/+2
| | | | | | | | | | | | function old new delta execvp_or_die - 50 +50 static.pseudo_null_str 3 - -3 builtin_exec 83 57 -26 pseudo_exec_argv 200 163 -37 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 0/2 up/down: 50/-66) Total: -16 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add support for special vars in bracesMike Frysinger2009-06-016-8/+6
| | | | | | | Some people like to use ${?} rather than $?, so make sure we support all the special single char vars that use this form. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush: fix problems with case in subshells and with "case esac"Denys Vlasenko2009-05-231-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush_test: update test output to match new getopt() outputMike Frysinger2009-05-211-1/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hush: make getopt32 usable in builtins. use it in unset.Denis Vlasenko2009-04-261-3/+2
| | | | | | | | | | more uses are expected in the future. function old new delta getopt32 1356 1393 +37 builtin_export 256 266 +10 builtin_unset 418 380 -38
* hush: fix SEGV in % expansionDenis Vlasenko2009-04-262-0/+2
| | | | | | function old new delta expand_variables 2203 2217 +14
* hush: fix handling of } which is not a closing one in { cmd; }Denis Vlasenko2009-04-192-0/+6
| | | | | | | function old new delta parse_stream 2176 2302 +126 builtin_unset 381 387 +6
* hush: fix "if { echo foo; } then { echo bar; } fi" parsingDenis Vlasenko2009-04-161-1/+1
| | | | | | | function old new delta done_word 728 793 +65 parse_stream 2084 2098 +14
* hush: tweak testsDenis Vlasenko2009-04-102-36/+36
|
* hush: tighten up "for" variable name check.Denis Vlasenko2009-04-101-2/+2
| | | | | | | | | | 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.
* add test cases for parameter substitution with unset/null stringsMike Frysinger2009-04-092-0/+38
|
* hush: deal with some easier TODOsDenis Vlasenko2009-04-093-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta is_well_formed_var_name - 87 +87 builtin_read 49 86 +37 die_if_script - 31 +31 syntax_error_unterminated - 28 +28 syntax_error 26 51 +25 done_word 768 788 +20 syntax_error_at - 12 +12 parse_stream_dquoted 320 328 +8 expand_variables 2064 2063 -1 run_list 1225 1220 -5 add_till_closing_paren 308 303 -5 add_till_backquote 111 106 -5 handle_dollar 812 803 -9 parse_stream 2378 2356 -22 parse_redirect 408 372 -36 maybe_die 44 - -44 is_assignment 215 134 -81 ------------------------------------------------------------------------------ (add/remove: 4/1 grow/shrink: 4/8 up/down: 248/-208) Total: 40 bytes
* use sleep rather than usleepMike Frysinger2009-04-071-2/+4
|
* implement support for parameter substitution via #/% operatorsMike Frysinger2009-04-072-0/+38
|
* hush: fix passing of $n on NOMMUDenis Vlasenko2009-04-052-0/+20
|
* hush: fix bug with local environment vars in pipes; simplify parse_stream()Denis Vlasenko2009-04-032-0/+13
| | | | | | | | function old new delta parse_stream 1238 1218 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-20) Total: -20 bytes
* hust_test/*: use "$THIS_SH" instead of hushDenis Vlasenko2009-03-315-48/+48
|
* implement `unset` semantics as required by POSIXMike Frysinger2009-03-302-0/+55
|
* test for invalid named variablesMike Frysinger2009-03-282-0/+7
|
* add hush tests for parameter expansionMike Frysinger2009-03-2810-0/+210
|
* hush: fix NOMMU bug (analogous to preceding commit for MMU)Denis Vlasenko2008-10-132-7/+7
|
* testcase for the last fixDenis Vlasenko2008-10-132-0/+20
|
* hush: fix environment and memory leaks, add tests for themDenis Vlasenko2008-10-092-0/+15
| | | | | | | | | | | | | | | function old new delta add_malloced_string_to_strings - 110 +110 run_list 1999 2086 +87 free_strings_and_unsetenv - 87 +87 hush_version_str - 18 +18 pseudo_exec_argv 139 146 +7 static.version_str 17 - -17 free_pipe 237 210 -27 done_word 790 642 -148 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/2 up/down: 309/-192) Total: 117 bytes
* hush: support $_NUMBERS variable namesDenis Vlasenko2008-07-314-0/+6
|
* cosmetics in hush testsuitesDenis Vlasenko2008-06-182-3/+1
|
* fix globbing in unquoted $* and $@Denis Vlasenko2008-06-182-0/+14
|
* hush: fix hush-bugs/glob_and_vars.tests testcase:Denis Vlasenko2008-06-162-0/+3
| | | | | | | | | | | | | | globbing is now done _after_ variable/`cmd` substitution function old new delta expand_strvec_to_strvec 7 353 +346 expand_variables 1348 1383 +35 add_string_to_strings - 28 +28 globhack 114 - -114 done_word 778 579 -199 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 2/1 up/down: 409/-313) Total: 96 bytes
* hush: fix some fallout from prev commits, add testsuiteDenis Vlasenko2008-06-102-0/+10
|
* hush: fix $ expansion in redirections, add testcase for thatDenis Vlasenko2007-11-232-0/+16
|
* hush: fix a bit different instance of "No EOL" bug,Denis Vlasenko2007-05-232-2/+3
| | | | add testsuite for that. Expand another testsuite.
* hush: more fixes to variable expansion, more testcasesDenis Vlasenko2007-05-143-0/+20
|
* hush: move towards more correct variable expansionDenis Vlasenko2007-05-142-0/+80
| | | | | hush: fix a few cases in FOR v IN ... construct unfortunately, code growth is big - ~600 bytes
* hush: fix '{ false; echo $?; }' bug.Denis Vlasenko2007-05-134-2/+14
| | | | | hush: expand testsuite. variable expansion is still very broken
* hush: reinstate hush_test, add testcases for process substDenis Vlasenko2007-05-112-0/+14
|
* hush: fix bug in interactive shell introduced yesterdayDenis Vlasenko2007-05-112-14/+0
| | | | | hush: fix `process subst` (2 bugs) NB: will delete and re-add hush_test in order to change file modes
* hush: fix "unterminated last line loops forever" bugDenis Vlasenko2007-05-102-0/+14
hush: add testsuite infrastructure