glob_bkslash_in_var.tests 346 B

12345678910
  1. mkdir testdir.TMP
  2. >testdir.TMP/name
  3. a="test*.TMP/\name_doesnt_exist"
  4. b="test*.TMP/\name"
  5. printf "Unquoted non-matching glob in var:'%s'\n" $a
  6. printf "Unquoted matching glob in var: '%s'\n" $b
  7. printf "Quoted non-matching glob in var: '%s'\n" "$a"
  8. printf "Quoted matching glob in var: '%s'\n" "$b"
  9. rm -f testdir.TMP/name
  10. rmdir testdir.TMP