That's true.
The test was actually there on purpose. I had scripts that I ran under MS and Unix. With the test I reduced the number of calls to glob when the command line was expanded properly. This made a significant difference in some of my code.
I originally had an OS check in there, that I dropped when I started typing this into code. I then used the ternary test to correct for slow reactions on some Unix.
Probably in the usual case this would be better. It's certainly easier to remember.
In reply to Re: Re^2: Fix wildcard arguments under MSWin
by gwadej
in thread Fix wildcard arguments under MSWin
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |