After studying blokhead's trick of using glob to expand wildcards (OK, I'm impressed.)
The example shows me I still don't have the hang of glob. The glob documentation says that the metacharacters behave as
So why does glob('foo{a,b}') expand into fooa, foob, but glob('foo[ab]') expand into nothing?\ Quote the next metacharacter [] Character class {} Multiple pattern * Match any string of characters ? Match any single character ~ User name home directory
throop
In reply to How glob expands by throop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |