dollar_altvalue9.tests 564 B

1234567891011121314151617
  1. f() { for i; do echo "|$i|"; done; }
  2. echo Unquoted 1:
  3. x='1 2'; f a${x:+ 'x y' $x '' "$x" `echo A B` "`echo C D`" z}b
  4. echo Quoted 1:
  5. x='1 2'; f "a${x:+ 'x y' $x '' "$x" `echo A B` "`echo C D`" z}b"
  6. echo Unquoted 2:
  7. x='1 2'; f a${x:+'x y' $x '' "$x" `echo A B` "`echo C D`" z }b
  8. echo Quoted 2:
  9. x='1 2'; f "a${x:+ 'x y' $x '' "$x" `echo A B` "`echo C D`" z }b"
  10. #echo Unquoted 3:
  11. #e=
  12. #x='1 2'; f a${x:+'x y' $x '' "$x" $e $e "$e" $e `echo A B` "`echo C D`" z }b
  13. #echo Quoted 3:
  14. #x='1 2'; f "a${x:+ 'x y' $x '' "$x" $e $e "$e" $e `echo A B` "`echo C D`" z }b"