hush: IFS fixes
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 11 Apr 2018 14:02:58 +0000 (16:02 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 11 Apr 2018 14:02:58 +0000 (16:02 +0200)
commit9678636911b39a7adf9b51d5b625cf4dc7e4ac81
tree75a0790a958a82015b34fc033d6f22f6f6dd3cb2
parent34179956f96370f5a53e73073d984d62135cd037
hush: IFS fixes

$ IFS=": "; x=" "; set x $x; for v; do echo "|$v|"; done
|x|
$ IFS=": "; x=":"; set x $x; for v; do echo "|$v|"; done
|x|
||

function                                             old     new   delta
run_pipe                                            1789    1870     +81
expand_on_ifs                                        310     361     +51
pseudo_exec_argv                                     588     591      +3
builtin_local                                         50      53      +3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 138/0)             Total: 138 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-vars/var_wordsplit_ifs4.right [new file with mode: 0644]
shell/ash_test/ash-vars/var_wordsplit_ifs4.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-vars/var_wordsplit_ifs4.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_wordsplit_ifs4.tests [new file with mode: 0755]