summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars
AgeCommit message (Collapse)Author
2009-06-01hush: add support for special vars in bracesMike Frysinger
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>
2009-05-23hush: fix problems with case in subshells and with "case esac"Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-05-21hush_test: update test output to match new getopt() outputMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-04-26hush: make getopt32 usable in builtins. use it in unset.Denis Vlasenko
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
2009-04-26hush: fix SEGV in % expansionDenis Vlasenko
function old new delta expand_variables 2203 2217 +14
2009-04-19hush: fix handling of } which is not a closing one in { cmd; }Denis Vlasenko
function old new delta parse_stream 2176 2302 +126 builtin_unset 381 387 +6
2009-04-16hush: fix "if { echo foo; } then { echo bar; } fi" parsingDenis Vlasenko
function old new delta done_word 728 793 +65 parse_stream 2084 2098 +14
2009-04-10hush: tweak testsDenis Vlasenko
2009-04-10hush: tighten up "for" variable name check.Denis Vlasenko
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.
2009-04-09add test cases for parameter substitution with unset/null stringsMike Frysinger
2009-04-09hush: deal with some easier TODOsDenis Vlasenko
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
2009-04-07use sleep rather than usleepMike Frysinger
2009-04-07implement support for parameter substitution via #/% operatorsMike Frysinger
2009-04-05hush: fix passing of $n on NOMMUDenis Vlasenko
2009-04-03hush: fix bug with local environment vars in pipes; simplify parse_stream()Denis Vlasenko
function old new delta parse_stream 1238 1218 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-20) Total: -20 bytes
2009-03-31hust_test/*: use "$THIS_SH" instead of hushDenis Vlasenko
2009-03-30implement `unset` semantics as required by POSIXMike Frysinger
2009-03-28test for invalid named variablesMike Frysinger
2009-03-28add hush tests for parameter expansionMike Frysinger
2008-10-13hush: fix NOMMU bug (analogous to preceding commit for MMU)Denis Vlasenko
2008-10-13testcase for the last fixDenis Vlasenko
2008-10-09hush: fix environment and memory leaks, add tests for themDenis Vlasenko
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
2008-07-31hush: support $_NUMBERS variable namesDenis Vlasenko
2008-06-18cosmetics in hush testsuitesDenis Vlasenko
2008-06-18fix globbing in unquoted $* and $@Denis Vlasenko
2008-06-16hush: fix hush-bugs/glob_and_vars.tests testcase:Denis Vlasenko
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
2008-06-10hush: fix some fallout from prev commits, add testsuiteDenis Vlasenko
2007-11-23hush: fix $ expansion in redirections, add testcase for thatDenis Vlasenko
2007-05-23hush: fix a bit different instance of "No EOL" bug,Denis Vlasenko
add testsuite for that. Expand another testsuite.
2007-05-14hush: more fixes to variable expansion, more testcasesDenis Vlasenko
2007-05-14hush: move towards more correct variable expansionDenis Vlasenko
hush: fix a few cases in FOR v IN ... construct unfortunately, code growth is big - ~600 bytes
2007-05-13hush: fix '{ false; echo $?; }' bug.Denis Vlasenko
hush: expand testsuite. variable expansion is still very broken
2007-05-11hush: reinstate hush_test, add testcases for process substDenis Vlasenko
2007-05-11hush: fix bug in interactive shell introduced yesterdayDenis Vlasenko
hush: fix `process subst` (2 bugs) NB: will delete and re-add hush_test in order to change file modes
2007-05-10hush: fix "unterminated last line loops forever" bugDenis Vlasenko
hush: add testsuite infrastructure