Cwd::abs_path returns undef for non-existent packages
Bug #6945 reported by
Debian Bug Importer
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl (Debian) |
Confirmed
|
Unknown
|
|||
perl (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Automatically imported from Debian bug report #257568 http://
To post a comment you must log in.
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 path("link" )
/tmp
$ mkdir -p dir
$ ln -s dir link
$ perl -e 'use Cwd; print Cwd::abs_
/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