Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Extended Macro function -- dir, and case-sensitivity


From   daniel klein <klein.daniel.81@gmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index