>>As far as I understand he likes the upper/lowercase parts kept.
Yup, I'm passing some paths to the Dabo app*, which is (like the rest of my system) in Linux, so filename case does matter.
>If that's the case, he may use this procedure:
Converting path to original case. Or parts of it.
Um... that's a tad complicated, compared. Probably also solves a bunch of special cases which I don't need.
----
* my favorite trick under wine is to have a bash script named something.exe, which wine passes to the regular command interpreter, which doesn't check the extension (wine does, it pretends to be a windows) but the header, and recognizes it as a script and executes it. And I simply generate the script from fox, so there's probably very little that I can't do this way.