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

Bug#964956: marked as done (apt-cache search trips over regex special characters in package names)



Your message dated Mon, 13 Jul 2020 14:01:21 +0200
with message-id <20200713135748.GA2159258@debian.org>
and subject line Re: Bug#964956: apt-cache search trips over regex special characters in package names
has caused the Debian Bug report #964956,
regarding apt-cache search trips over regex special characters in package names
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
964956: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964956
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 1.8.2.1
Severity: important

Hi,

running `apt-cache search libstdc++5` on a fresh minimal system yields an empty
result. This behaviour is inconsistent with processing of command-line
arguments of the sub-commands pkgnames and show.


Environment:
- minimal buster
- sources.list: deb http://ftp.de.debian.org/debian buster main


This behaviour occurs on jessie through sid.


Here are some example commands an their respective outputs:

---------8<----------------------------
# apt-cache search libstdc++5

# apt-cache search libstdc\+\+5

# apt-cache search libstdc\\+\\+5
libstdc++5 - The GNU Standard C++ Library v3

# apt-cache search "libstdc++5"

# apt-cache search "libstdc\+\+5"
libstdc++5 - The GNU Standard C++ Library v3
--------->8----------------------------




However, the pkgnames and show sub-commands are not affected:


---------8<----------------------------
apt-cache pkgnames libstdc++5
libstdc++5

# apt-cache show libstdc++5
Package: libstdc++5
Source: gcc-3.3 (1:3.3.6ds1-30)
Version: 1:3.3.6-30
Installed-Size: 1128
[...]
--------->8----------------------------


Let me know if you need more info.

Thanks
Daniel

--- End Message ---
--- Begin Message ---
On Mon, Jul 13, 2020 at 01:20:18PM +0200, Daniel Reichelt wrote:
> Package: apt
> Version: 1.8.2.1
> Severity: important
> 
> Hi,
> 
> running `apt-cache search libstdc++5` on a fresh minimal system yields an empty
> result. This behaviour is inconsistent with processing of command-line
> arguments of the sub-commands pkgnames and show.

The behavior is correct, search takes a regular expression. Eventually
it should take patterns like other commands, but still default to a regular
expression - whereas the other commands, not being search commands, expect
names by default (this is how aptitude behaves).

This is somewhat inconsistent and unexpected, but it's what it is, and it's
documented as such.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

--- End Message ---

Reply to: