Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Extended Macro function -- dir, and case-sensitivity
From
daniel klein <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Extended Macro function -- dir, and case-sensitivity
Date
Fri, 26 Apr 2013 00:47:14 +0200
Max,
actually I have been bitten by exactly the same thing writing a
program once. I have decided to write the program in a way, that
uppercase letters imply the -respectcase- option, as I find this more
convenient.
I agree that the documentation on this can be quite irritating, even
though the examples make it very clear:
"In Windows, without the respectcase option, all filenames would be
converted to lowercase before being compared with pattern and possibly
returned."
I would like to see this sentence in the "main description" where they
write about -strmatch- being used internally.
Also, since Stata is case-sensitive and all its commands and functions
(including -strmatch-) are case-sensitive even on a Windows machine,
it seems a litte inconsistent that -dir- internally converts uppercase
letters to lowercase letters if not specifically told otherwise.
Best
Daniel
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/