Comment 4 for bug 6945

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Mon, 5 Jul 2004 20:10:22 +0200
From: David Kimdon <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Cwd::abs_path returns undef for non-existent packages

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