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>
This commit is contained in:
5
shell/ash_test/ash-vars/var_wordsplit_ifs4.right
Normal file
5
shell/ash_test/ash-vars/var_wordsplit_ifs4.right
Normal file
@ -0,0 +1,5 @@
|
||||
|x|
|
||||
Ok1:0
|
||||
|x|
|
||||
||
|
||||
Ok2:0
|
4
shell/ash_test/ash-vars/var_wordsplit_ifs4.tests
Executable file
4
shell/ash_test/ash-vars/var_wordsplit_ifs4.tests
Executable file
@ -0,0 +1,4 @@
|
||||
IFS=": "; x=" "; set x $x; for v; do echo "|$v|"; done
|
||||
echo Ok1:$?
|
||||
IFS=": "; x=":"; set x $x; for v; do echo "|$v|"; done
|
||||
echo Ok2:$?
|
Reference in New Issue
Block a user