summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-quoting/dollar_altvalue9.tests
blob: 27a6f4f3c05bb70f5700e156dab4b52bb6e4a7eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"