in reply to (tye)Re: Test to see if directories are the same
in thread Test to see if directories are the same

no idea if it'd be working against hardlinks (don't any OS that can do that :( ), but it sure does with symlinks :) .. it's written in Cwd docs:
The abs_path() function takes a single argument and returns the absolute pathname for that argument. It uses the same algorithm as getcwd(). (Actually, getcwd() is abs_path(".")) Symbolic links and relative-path components ("." and "..") are resolved to return the canonical pathname, just like realpath(3). Also callable as realpath().

... ofc, cause you mentioned it i've just tested it and seems to be working ok on linux and sunos.

--
AltBlue.

  • Comment on Re: (tye)Re: Test to see if directories are the same