Hi all,
Dirname and basename assume Unix style slash-delimited
pathnmes and do not work on Win style
backslash-delimited pathnames. I wrote very simple
versions of each that I am enclosing which support both
Unix and Win style delimiters and otherwise mostly mimic
behavior of the standard (msys)versions.
I am not sure this is a bug, but inconvenience at least. I
never use the standard msys versions any more.
Thank you,
Simon
tar of enclosed sources
Logged In: YES
user_id=15438
Can you please give me examples of your use that do not work
correctly?
Earnie.
Logged In: YES
user_id=579989
--[why this is needed at all]--
$ echo $WINDIR
C:\WINDOWS
$ basename $WINDIR
C:\WINDOWS
$ basenamex $WINDIR
WINDOWS
--[where behavior differs]--
$ dirname /
/
$ basename /
/
$ dirnamex /
C:/msys
$ basenamex /
1.0
--[end]--
Logged In: YES
user_id=15438
I don't see the need for this. Item closed.