aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-getopts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hush: fix "getopts" builtin to not be upset by other builtins calling getopt()Denys Vlasenko2017-08-292-0/+35
| | | | | | | | | | | | | | | | function old new delta builtin_getopts 363 403 +40 unset_local_var_len 185 215 +30 set_local_var 440 466 +26 reset_traps_to_defaults 151 157 +6 pseudo_exec_argv 320 326 +6 install_special_sighandlers 52 58 +6 pick_sighandler 62 65 +3 execvp_or_die 85 88 +3 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 8/0 up/down: 120/0) Total: 120 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: tweak getopts tests, no code changesDenys Vlasenko2017-08-135-2/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: implement "silent" optstrings of ":opts"Denys Vlasenko2017-08-112-0/+29
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: add a test which fails due to uclibc bug in getopt()Denys Vlasenko2017-08-112-0/+64
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shell: add OPTARG poisoning to getopt_optarg.testsDenys Vlasenko2017-08-111-0/+2
| | | | | | ash fails this! Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: teach getopts to set/unset OPTARGDenys Vlasenko2017-08-113-1/+34
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* hush: getopts builtinDenys Vlasenko2017-08-114-0/+123
function old new delta builtin_getopts - 271 +271 bltins1 372 384 +12 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/0 up/down: 283/0) Total: 283 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>