[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

abs2rel("/foo/bar", "/foo/bar")



Hi,

David Golden recently reported a problem in Path::Class that I traced 
back to an odd behavior in File::Spec:

% perl -MFile::Spec::Functions=abs2rel -le 'print abs2rel("/foo/bar", 
"/foo/bar")'

%

In other words, it returns the empty string instead of something 
sensible like "." or whatever curdir() is on the current platform.  The 
substr()-nature of File::Spec rears its head again.

Since this problem has probably been around nearly forever, I thought 
I'd better ask here before fixing it, though.  Does anyone know of 
anything outside File::Spec relying on this?

  -Ken


Follow-Ups from:
Ken Williams <ken@mathforum.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]