Match strings against globs.
In a glob string a question sign matches any character and
an asterisk matches any string.
When the second argument is a string and str matches
the glob glob 1
will be returned, 0
(zero) otherwise.
If the second array is an array and array containing the strings in
arr that match glob will be returned.