1. wildcard_file and dir on linux

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 message » categorize

2. Re: wildcard_file and dir on linux

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu