[pacman-dev] [PATCH] Allow -Qo to perform a functional 'which'
Allan McRae
allan at archlinux.org
Mon Dec 21 16:03:22 EST 2009
Xavier wrote:
> On Mon, Dec 21, 2009 at 10:55 AM, Allan McRae <allan at archlinux.org> wrote:
>> When pacman queries the ownership of an object that is not a path,
>> it will check in the users PATH for a match. Implements FS#8798.
>>
>
> Just one quick comment now :
> The current behavior with pacman -Qo foo (with no /) will check the
> current directory (well its just stat).
> With the new behavior, it seems it will no longer do that. But one
> workaround should be ./foo
> And maybe that is fine.
>
> Correct me if I am wrong :)
It appears that you are wrong:
allan at arch /usr/lib
> ~/code/pacman/src/pacman/pacman -Qo libalpm.so.4
libalpm.so.4 is owned by pacman 3.3.3-1
/usr/lib is not in my PATH...
This makes sense, as it only tests if the variable contains "/" and
searches the PATH after the initial stat fails.
Allan
More information about the pacman-dev
mailing list