summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-quoting/dollar_altvalue1.tests
blob: f4dc8caec77c362c7cbdd6d45d9b8815276ff6eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
f() { for i; do echo "|$i|"; done; }
x=a

echo Unquoted b c d
f ${x:+b c d}
echo Unquoted "'b c' d"
f ${x:+'b c' d}
echo Unquoted '"b c" d'
f ${x:+"b c" d}

echo Quoted b c d
f "${x:+b c d}"
echo Quoted "'b c' d"
f "${x:+'b c' d}"
echo Quoted '"b c" d'
f "${x:+"b c" d}"