-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg which -p <pkgname> don't works as desired #1174
Comments
On 15/02/2015 16:17, Andrej Z. wrote:
perl5 is rather a special case. First of all, /usr/bin/perl5 is no On my machine: lucid-nonsense:~:% pkg which -p perl5 which is your intended result. But then I don't have anything like lucid-nonsense:~:% ls -laL /usr/bin/perl* To choose some different examples: (1) lucid-nonsense: This is producing the correct output IMHO. The dovecot port owns the (2) lucid-nonsense: OK -- I agree that this output is not ideal. However, it is pedanticly What I think this needs is the same output as currently, but then, IFF /usr/local/bin/gpg is linked to gpg2
Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey |
Hm, Perl 5.18 is still default perl version in the ports tree and will create /usr/bin/perl5 symlink by default :-) While I'm agree with you here, but i'm not sure what we need to expand symlinks. Maybe cheap version? like just iterate over the PATH and search for matches. No more.
|
Expanding the symlinks would be a bad idea imho |
For example if we talking about perl5 package and want to see which package contain perl5 file.
logic of src/which.c don't allow it save matched path and move forward till end. So only first match is used and if first match not in database you will get no proper result.
Correct result must be
The text was updated successfully, but these errors were encountered: