2008/6/19 Michael Schuster <[EMAIL PROTECTED]>:
> Chris Ridd wrote:
>>
>> On 18 Jun 2008, at 14:16, Shawn Walker wrote:
>>
>>> 2008/6/18 Chris Ridd <[EMAIL PROTECTED]>:
>>>>
>>>> On 18 Jun 2008, at 09:57, Chris Ridd wrote:
>>>>
>>>>> This is on snv_90:
>>>>>
>>>>> $ pkg search libz
>>>>> $ pkg search libz.so
>>>>> INDEX      ACTION    VALUE               PACKAGE
>>>>> basename   link      lib/libz.so         pkg://[EMAIL PROTECTED]
>>>>>
>>>>> Is there a minimum length string that can be searched for?
>>>>
>>>> Same system:
>>>>
>>>> $ pkg search bin/wish
>>>> $ pkg search wish
>>>> INDEX      ACTION    VALUE               PACKAGE
>>>> basename   link      usr/bin/wish        pkg://[EMAIL PROTECTED]
>>>>
>>>> Something's not quite right.
>>>
>>> I believe you're seeing the current expected behaviour. That is,
>>> partial matching is not the default behaviour.
>>>
>>> So libz.so works because it is a complete filename. libz doesn't
>>> because it is a substring match.
>>>
>>> The same goes for bin/wish and wish from what I understand.
>>
>> That makes sense, thanks for the explanation.
>
> (sorry if this has come up already, I just signed up to this alias last
> night)
>
> would it be desirable to have this configurable? Eg sth. like
>
> $ pkg search libz
> $ pkg search -p libz
> INDEX      ACTION    VALUE               PACKAGE
> basename   link      lib/libz.so         pkg://[EMAIL PROTECTED]

I would prefer that it attempts to "do the right thing" without
depending on the user to know that there's a special command-line
switch to make it act like they would probably want it to already.

-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to