3
0

dollar_altvalue1.tests 271 B

12345678910111213141516
  1. f() { for i; do echo "|$i|"; done; }
  2. x=a
  3. echo Unquoted b c d
  4. f ${x:+b c d}
  5. echo Unquoted "'b c' d"
  6. f ${x:+'b c' d}
  7. echo Unquoted '"b c" d'
  8. f ${x:+"b c" d}
  9. echo Quoted b c d
  10. f "${x:+b c d}"
  11. echo Quoted "'b c' d"
  12. f "${x:+'b c' d}"
  13. echo Quoted '"b c" d'
  14. f "${x:+"b c" d}"