Almost totally unrelated, but taking the opportunity to rant. If you use OS X, your getopt is fully POSIX compliant (as are many BSDs, I think), unlike most Linux distributions. This means globs (files arguments) must come after optionals.<p>For example:<p>ls -la * .txt<p>OK<p>ls * .txt -la<p>Not OK<p>This drives me mad.