Package: apt
Version: 2.9.3
Severity: normal
X-Debbugs-Cc: [email protected]
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.
Konomi
-- Package-specific info:
-- (/etc/apt/preferences present, but not submitted) --
-- (/etc/apt/preferences.d/apt-listbugs present, but not submitted) --
-- (/etc/apt/sources.list present, but not submitted) --
-- (no /etc/apt/sources.list.d/* present) --
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages apt depends on:
ii adduser 3.137
ii base-passwd 3.6.3
ii debian-archive-keyring 2023.4
ii gpgv 2.2.43-6
ii libapt-pkg6.0t64 2.9.3
ii libc6 2.38-11
ii libgcc-s1 14.1.0-1
ii libgnutls30t64 3.8.5-2
ii libseccomp2 2.5.5-1
ii libstdc++6 14.1.0-1
ii libsystemd0 256~rc3-2
Versions of packages apt recommends:
ii ca-certificates 20240203
Versions of packages apt suggests:
ii apt-doc 2.9.3
ii aptitude 0.8.13-6
ii dpkg-dev 1.22.6
ii gnupg 2.2.43-6
ii powermgmt-base 1.37
-- no debconf information
Acknowledgement sent
to Julian Andres Klode <[email protected]>:
Extra info received and forwarded to list. Copy sent to APT Development Team <[email protected]>.
(Fri, 24 May 2024 15:03:04 GMT) (full text, mbox, link).
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: [email protected]
>
> 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
Changed Bug title to 'search does not support patterns' from 'apt: search '?installed ?not(?automatic)' causes regex compilation error'.
Request was from Julian Andres Klode <[email protected]>
to [email protected].
(Fri, 24 May 2024 15:03:04 GMT) (full text, mbox, link).