1. wildcard_file and dir on linux
- Posted by Undetermined origin c/o LISTSERV administrator Aug 26, 2000
- 492 views
Matt Arriola just sent me some improvements to EuOS. I'm using Linux, and he's using DOS. While integrating his code, I came across a problem with dir on linux - it doesn't support wildcards, while it does on DOS. I wrote a simple function to simply list the directory then use wildcard_match to filter the files. Of course, this is case sensitive, and as Matt pointed out, does not work on DOS. I thought I might be able to use wildcard_file as a simple, cross-platform function (I hoped that it would be case sensitive on Linux and case insensitive on DOS/Win32). When I examined the routine in wildcard.e, however, I found that this is not the case and that wildcard_file is always case insensitive, even on Linux. I wonder whether wildcard_file should behave differently on Linux to do a case sensitive match. Also, why does dir behave differently and could/should it be modified to behave as in DOS, or at least shouldn't the documentation make note of this problem (it currently says that wildcards are supported on all platforms). Jeff Fielding JJProg at cyberbury.net
2. Re: wildcard_file and dir on linux
- Posted by Robert Craig <rds at ATTCANADA.NET> Aug 26, 2000
- 478 views
- Last edited Aug 27, 2000
Jeff Fielding writes: > I wonder whether wildcard_file should behave differently > on Linux to do a case sensitive match. I guess it should. Thanks. I'll fix it for the next release. > Also, why does dir behave differently and could/should > it be modified to behave as in DOS, or at least shouldn't the > documentation make note of this problem The underlying C routines for "dir" work differently on Linux. I should at least document it. Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com