in reply to Globbing drives me nuts - some things seem counterintuitive
Is this the normal behaviour of glob??Yes. It doesn't always read the directory; only when it has to evaluate wildcards. In fact, if you put alternators (e.g., foo.{bar,baz}), it will generate all the combinations for you without looking to see whether they exist as files.
I'm not qualified to tell you whether you're nuts. :-)
|
|---|