Dubious output when using regex with apt-cache search

Bug #2064905 reported by Siddh Raman Pant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Opinion
Undecided
Unassigned

Bug Description

In a noble VM, I wanted to search only for bindgen package, so I tried the following:

$ apt-cache search ^bindgen$
bindgen - Automatically generate Rust FFI bindings to C and C++ libraries
bindgen-0.65 - Automatically generates Rust FFI bindings to C and C++ libraries

Why is bindgen-0.65 listed? $ should match with the EOL (man page does indeed refer to regex(7)).

Tags: noble
Revision history for this message
David Kalnischkies (donkult) wrote :

Note the remark ", including virtual package names." in the manpage.

bindgen-0.65 has a "Provides: bindgen" (with a version), so it has (also) the virtual package name "bindgen" and that perfectly matches your regex. So, working as intended & documented and hence I am changing the status to opinion (could be a question, but I don't seem to have the rights to do that)

Changed in apt (Ubuntu):
status: New → Opinion
Revision history for this message
Siddh Raman Pant (siddhpant) wrote :

Thank you very much! That clears it up.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.