[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#275252: acknowledged by developer (Re: Bug#275252: Package libstdc++2.10-glibc2.2 not findable with "apt-cache search libstdc++2.10-glibc2.2")



On Thu, Oct 07, 2004 at 02:53:53PM +1300, Adam Shand wrote:

> On Oct 7, 2004, at 1:48 PM, Debian Bug Tracking System wrote:
> >"apt-cache search" uses regular expressions, so the '+' character is
> >special.
> 
> Ah, thanks for the response.  My bad for not reading the man page, 
> sorry about that.
> 
> I'm sure this is a matter of religious debate so feel free to ignore 
> me, but it seems to me that this is probably not the behavior most 
> people would expect.   I've been using Debian for many years and I 
> don't think I've ever needed to do a regex search in this way.
>
> It might be more obvious and friendly if "search" just did a plain 
> string search and you had to do "-regex search" (or something) to 
> enable regex mode.

I use it all the time.  The search functions in the interactive interfaces
of dselect and aptitude work the same way.

This is very convenient when you don't know the exact name of the package.
When you do, "apt-cache show" is more effective.

It would be nice to have a --exact for search, but that's a separate
wishlist item.

-- 
 - mdz



Reply to: