Eric Blake <ebb9 <at> byu.net> writes:
> Not a bug. dir1 ends in a 1, so you got the results of 'ls dir1', which
> lists the contents of that directory without regards to whether the
> contents match the original glob you typed on the command line. Globbing
> is done before ls starts; to see what you really did, try:
>
> $ ls *[0-9]
I typo'd that. I meant for you to try:
$ echo ls *[0-9]
--
Eric Blake