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

Bug#1071744: apt: search '?installed ?not(?automatic)' causes regex compilation error



Control: retitle -1 search does not support patterns

On Sat, May 25, 2024 at 12:50:53AM +1000, Konomi wrote:
> Package: apt
> Version: 2.9.3
> Severity: normal
> X-Debbugs-Cc: konomikitten@gmail.com
> 
> Dear Maintainer,
> 
> Running `apt search '?installed ?not(?automatic)'` results in the
> following message: "Error: Regex compilation error". Using the same search
> terms in aptitude `aptitude search '?installed ?not(?automatic)'` works
> as expected.

Yes this is well known, the apt search command specifically can only
do text search, you are looking for the apt list command.

There's some limitations to actually allow search to take patterns,
as it currently builds a regular expression vector and then runs them
over the descriptions, hence why there's no patterns yet.
-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: