# does a given string match a given filename (glob) pattern?
fnmatch() { case "$2" in $1) return 0 ;; *) return 1 ;; esac }
# now you can do things like:
# so much for needing Bash's "[[" command...
# if fnmatch 'a??*' "$var"; then ...; fi
