34 lines
427 B
Plaintext
34 lines
427 B
Plaintext
|
f() { echo start:; for i; do echo "|$i|"; done; echo end; }
|
||
|
x=a
|
||
|
|
||
|
echo "Unquoted '':"
|
||
|
f ${x:+''}
|
||
|
f ${x:+'' }
|
||
|
f ${x:+ ''}
|
||
|
f ${x:+ '' }
|
||
|
f ${x:+'' ''}
|
||
|
|
||
|
echo
|
||
|
echo 'Unquoted "":'
|
||
|
f ${x:+""}
|
||
|
f ${x:+"" }
|
||
|
f ${x:+ ""}
|
||
|
f ${x:+ "" }
|
||
|
f ${x:+"" ""}
|
||
|
|
||
|
echo
|
||
|
echo "Quoted '':"
|
||
|
f "${x:+''}"
|
||
|
f "${x:+'' }"
|
||
|
f "${x:+ ''}"
|
||
|
f "${x:+ '' }"
|
||
|
f "${x:+'' ''}"
|
||
|
|
||
|
echo
|
||
|
echo 'Quoted "":'
|
||
|
f "${x:+""}"
|
||
|
f "${x:+"" }"
|
||
|
f "${x:+ ""}"
|
||
|
f "${x:+ "" }"
|
||
|
f "${x:+"" ""}"
|