123456789101112131415161718192021222324252627282930313233 |
- 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:+"" ""}"
|