-x option does not work

Bug #1207024 reported by Johan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-file (Ubuntu)
New
Undecided
Unassigned

Bug Description

Manpage says:
 Treat pattern as a (perl) regular expression. See perlreref(1) for details. Without this option, pattern is treated as a literal string to search for.

In Perl, the regular expression 'a|b|c' searches for a or b or c.

apt-get search -x 'a|b|c' does

Possibly related is this broken reimplementation of apt-file: https://github.com/dankamongmen/raptorial

Basic properties for | also fail:
apt-file search -x 'sbcl|gcc' gives different output from apt-file search -x 'gcc|sbcl'.

This issue can be solved in a couple of ways: 1) fix the program 2) fix the documentation 3) introduce a new program that works and is less tied to Perl hacks.

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.