blob: f4dc8caec77c362c7cbdd6d45d9b8815276ff6eb [file] [log] [blame]
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}"