Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the File-Which CPAN distribution.

Report information
The Basics
Id: 102256
Status: resolved
Priority: 0/
Queue: File-Which

People
Owner: Nobody in particular
Requestors: rleach [...] genomics.princeton.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: File::Which bug
Date: Fri, 20 Feb 2015 16:42:21 -0500
To: bug-File-Which [...] rt.cpan.org
From: Robert William Leach <rleach [...] genomics.princeton.edu>
Download (untitled) / with headers
text/plain 1.1k
Hi, Not sure if this is a bug or whether it's working as intended, however, I would have expected that the return would be the same as `which` at the command line. perl -e 'use File::Which;print($File::Which::VERSION,"\n")' 1.09 perl --version This is perl 5, version 16, subversion 2 (v5.16.2) built for darwin-thread-multi-2level (with 3 registered patches, see perl -V for more detail) ... uname -a Darwin gen-rlimac 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64 Expected behavior: I would have expected that: perl -e 'use File::Which;print(scalar(which("/usr/local/bin/usearch7.0.1090_i86osx32")),"\n")' would be the same as: which /usr/local/bin/usearch7.0.1090_i86osx32 /usr/local/bin/usearch7.0.1090_i86osx32 Observed behavior: But instead, it returns an undefined value: perl -e 'use File::Which;print((defined(scalar(which("/usr/local/bin/usearch7.0.1090_i86osx32"))) ? "defined" : "undefined"),"\n")' undefined Rob Robert William Leach 133A Carl C. Icahn Lab Lewis-Sigler Institute for Integrative Genomics Princeton University Princeton, NJ 08544
Download (untitled) / with headers
text/plain 1.2k
On 2015-02-20 16:41:46, rleach@genomics.princeton.edu wrote: Show quoted text
> Hi, > > Not sure if this is a bug or whether it's working as intended, > however, I would have expected that the return would be the same as > `which` at the command line. > > perl -e 'use File::Which;print($File::Which::VERSION,"\n")' > 1.09 > > perl --version > This is perl 5, version 16, subversion 2 (v5.16.2) built for darwin- > thread-multi-2level > (with 3 registered patches, see perl -V for more detail) > ... > > uname -a > Darwin gen-rlimac 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 > 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64 > > Expected behavior: > I would have expected that: > > perl -e 'use > File::Which;print(scalar(which("/usr/local/bin/usearch7.0.1090_i86osx32")),"\n")' > > would be the same as: > > which /usr/local/bin/usearch7.0.1090_i86osx32 > /usr/local/bin/usearch7.0.1090_i86osx32 > > Observed behavior: > But instead, it returns an undefined value: > > perl -e 'use > File::Which;print((defined(scalar(which("/usr/local/bin/usearch7.0.1090_i86osx32"))) > ? "defined" : "undefined"),"\n")' > undefined >
I agree that this is a bug. There's an earlier bug report about this, together with a patch: https://rt.cpan.org/Ticket/Display.html?id=49559
Download (untitled) / with headers
text/plain 143b
This is a duplicate of rt49559. Please follow this issue on the project GitHub issue tracker: https://github.com/plicease/File-Which/issues/2


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.