You say "works" and "don't work", but you don't say what you're trying to do. Are you trying to match one filename? both?
Also note that glob()'s actions are modeled on csh, not bash, so that comparison may be leading you astray.
In reply to Re: Unexplained glob behavior vs. Bash shell
by genehack
in thread Unexplained glob behavior vs. Bash shell
by puterboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |