wildcard_file and dir on linux

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu