Unfortunately, I do not have access to any Apple products, nor do I know anyone who owns an Apple. Nevertheless, I want to add MacOS support (travis testing with MacOS) to one of my projects.
As far as I can see, most MacOS systems are by default case insensitive. Because of that, I need a shell command that can be passed the absolute path to a file and that returns the path of the file with proper case.
Say, there is a file
/aBc/Def.txt and I know that the lower case representation of the filename’s full path is
/abc/def.txt. Thus, what I want is
> <magiccommand> /abc/def.txt /aBc/Def.txt
EDIT 1: Maybe
ls /abc/def.txt is enough, but I just can’t check. Can someone try that, please.
Any help highly appreciated.