2 # test the shell globbing
14 touch a b c d abc abd abe bb bcd ca cb dd de
17 # see if `regular' globbing works right
18 expect '<a> <abc> <abd> <abe> <X*>'
21 expect '<a> <abc> <abd> <abe>'
24 # see if null glob expansion works
25 allow_null_glob_expansion=
27 expect '<a> <abc> <abd> <abe>'
30 unset allow_null_glob_expansion
32 # see if the code that expands directories only works
36 # Test quoted and unquoted globbing characters
46 expect '<c> <ca> <cb> <a*> <*q*>'
61 # Pattern from Larry Wall's Configure that caused bash to blow up
62 expect '</^root:/{s/^[^:]*:[^:]*:\([^:]*\).*$/\1/>'
63 recho "/^root:/{s/^[^:]*:[^:]*:\([^:]*\).*"'$'"/\1/"
65 # Make sure character classes work properly
67 expect '<abc> <abd> <abe> <bb> <cb>'
70 expect '<abd> <abe> <bb> <bcd> <bdir> <ca> <cb> <dd> <de>'
81 expect '<d> <dd> <de>'
84 # Make sure that filenames with embedded globbing characters are handled
105 *.\*) echo not there ;;
109 # examples from the Posix.2 spec (d11.2, p. 243)
168 # This is very odd, but sh and ksh seem to agree