On 12/01/2004, at 8:56 AM, Stas Bekman wrote:
Randy Kobes wrote:On Sun, 11 Jan 2004, Stas Bekman wrote:Randy Kobes wrote:[ .. ]Sorry about that - I'll revert that change (I just tried, but got an error message about insufficient space left on a device). Actually, looking for both 'apache' and 'Apache' leads back to the same problem on Win32 that, when the list of Apache binaries is reported, both 'apache' and 'Apache' are listed (with the same paths), so a different approach is needed.
So check that the path and lowercased filename match and exclude those on win32?Yes, that would work, but it looks a bit funny - for example, my Apache is D:\Apache2\bin\Apache.exe, which would get reported as d:\apache2\bin\apache.exe. If there isn't an easy way to preserve the case yet still remove such duplicates, I'll do that - it's not a big deal.
Randy, you are the expert on win32 ;) I have no idea what method to use to get a consistent case on case-insenstive file systems. Really I think it's time to extend File::Spec to handle that and not solve this problem every time we need to read a filename.
Likely to be a problem on (at least some versions of) Darwin as well, isn't
it? Which probably means that you *really* don't want to be handling it all
every time you come across it...
Cheers,
Nick