294eb4612c
ash might be a bit buggy, need to investigate dollar_altvalue9 test function old new delta expand_one_var 1639 2236 +597 expand_variables 112 128 +16 expand_vars_to_list 1117 1097 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 613/-20) Total: 593 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
18 lines
564 B
Plaintext
Executable File
18 lines
564 B
Plaintext
Executable File
f() { for i; do echo "|$i|"; done; }
|
|
|
|
echo Unquoted 1:
|
|
x='1 2'; f a${x:+ 'x y' $x '' "$x" `echo A B` "`echo C D`" z}b
|
|
echo Quoted 1:
|
|
x='1 2'; f "a${x:+ 'x y' $x '' "$x" `echo A B` "`echo C D`" z}b"
|
|
|
|
echo Unquoted 2:
|
|
x='1 2'; f a${x:+'x y' $x '' "$x" `echo A B` "`echo C D`" z }b
|
|
echo Quoted 2:
|
|
x='1 2'; f "a${x:+ 'x y' $x '' "$x" `echo A B` "`echo C D`" z }b"
|
|
|
|
#echo Unquoted 3:
|
|
#e=
|
|
#x='1 2'; f a${x:+'x y' $x '' "$x" $e $e "$e" $e `echo A B` "`echo C D`" z }b
|
|
#echo Quoted 3:
|
|
#x='1 2'; f "a${x:+ 'x y' $x '' "$x" $e $e "$e" $e `echo A B` "`echo C D`" z }b"
|