Comment 1 for bug 6945

Revision history for this message
In , David Kimdon (david-kimdon) wrote :

severity 257568 wishlist
quit

Hi,

It looks to me like the function is behaving as documented (see
Cwd(3perl)). If the path does not exist there is no way for the
function to succeed since the function is defined to resolve symbolic
links. For example:

$ pwd
/tmp
$ mkdir -p dir
$ ln -s dir link
$ perl -e 'use Cwd; print Cwd::abs_path("link")
/tmp/dir

If link did not exist the function could not know to return '/tmp/dir'

What behavior are you looking for? I don't see a bug here. I dropped
the severity to wishlist since it looks to me like you would like a
function that does something for you, but I am not sure what. Are you
looking for something to concatenate Cwd::abs_path(".") with a
relative path?

-David