Subject: | which does support `which /usr/bin/lynx` => /usr/bin/lynx, File::Which doesn't |
Date: | Wed, 9 Sep 2009 16:45:42 +0200 |
To: | bug-File-Which [...] rt.cpan.org |
From: | v4hn <me [...] v4hn.de> |
Message body not shown because it is not plain text.
ev'ning,
During the last weeks I often wondered why this happens in my cpan:
[code]
Show quoted text
cpan> perldoc <Module>
Running perldoc for module '<Module>'
CPAN: File::Which loaded ok (v1.07)
You need to install lynx or html2text.pl to use this feature.
Show quoted textcpan> o conf lynx
lynx [/usr/bin/lynx]
Show quoted textcpan>!print "got lynx" if -x "/usr/bin/lynx";
cpan> got lynx
[/code]
While debugging I found out that CPAN::Distribution::_check_binary
uses File::Which if available, instead of using the shell command `which`,
and that File::Which doesn't support the feature of checking
a given absolute path. So my configuration works with your module
not installed but doesn't with your module installed:
that's why I consider the missing of this feature as a bug. :)
A small patch is attached.
v4hn
Message body is not shown because sender requested not to inline it.