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