Your message dated Sat, 10 Oct 2015 14:07:43 +0200
with message-id <[email protected]>
and subject line Re: [Aptitude-devel] Bug#801440: aptitude is unable to search
a package which has a plus or minus symbol in it.
has caused the Debian Bug report #801440,
regarding aptitude is unable to search a package which has a plus or minus
symbol in it.
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 [email protected]
immediately.)
--
801440: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801440
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: aptitude
Version: 0.7.3-1
Severity: normal
Dear Maintainer,
Searching a package which has a plus or minus symbol gives nothing.
For e.g. :-
$ aptitude search libstdc++6
$
This tells it doesn't know what to do with packages which have + or -
in their name.
-- Package-specific info:
Terminal: xterm
$DISPLAY is set.
which aptitude: /usr/bin/aptitude
aptitude version information:
aptitude 0.7.3 compiled at Oct 7 2015 23:33:19
Compiler: g++ 5.2.1 20151003
Compiled against:
apt version 4.16.0
NCurses version 6.0
libsigc++ version: 2.6.1
Gtk+ support disabled.
Qt support disabled.
Current library versions:
NCurses version: ncurses 6.0.20150810
cwidget version: 0.5.17
Apt version: 4.16.0
aptitude linkage:
linux-vdso.so.1 (0x00007ffcb5586000)
libapt-pkg.so.4.16 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.16
(0x00007fcb86b02000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5
(0x00007fcb868d2000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5
(0x00007fcb866a7000)
libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0
(0x00007fcb864a1000)
libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3
(0x00007fcb861a2000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
(0x00007fcb85ed4000)
libboost_iostreams.so.1.58.0 =>
/usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.58.0
(0x00007fcb85cbb000)
libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007fcb858b9000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007fcb8569b000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007fcb85320000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcb8501b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
(0x00007fcb84e04000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcb84a61000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fcb8485e000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fcb84659000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fcb8443e000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0
(0x00007fcb8422e000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fcb8400a000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fcb83e02000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fcb83bfc000)
/lib64/ld-linux-x86-64.so.2 (0x0000557883f89000)
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages aptitude depends on:
ii aptitude-common 0.7.3-1
ii libapt-pkg4.16 1.0.10.2
ii libboost-iostreams1.58.0 1.58.0+dfsg-3+b1
ii libc6 2.21-0experimental1
ii libcwidget3v5 0.5.17-4
ii libgcc1 1:5.2.1-21
ii libncursesw5 6.0+20150810-1
ii libsigc++-2.0-0v5 2.6.1-2
ii libsqlite3-0 3.8.11.1-1
ii libstdc++6 5.2.1-21
ii libtinfo5 6.0+20150810-1
ii libxapian22v5 1.2.21-1.2
Versions of packages aptitude recommends:
ii aptitude-doc-en [aptitude-doc] 0.7.3-1
ii libparse-debianchangelog-perl 1.2.0-8
ii sensible-utils 0.0.9
Versions of packages aptitude suggests:
ii apt-xapian-index 0.47
ii debtags 2.0.1
ii tasksel 3.33
-- no debconf information
--
Regards,
Shirish Agarwal शिरीष अग्रवाल
My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8
--- End Message ---
--- Begin Message ---
Hi,
shirish शिरीष wrote:
> Searching a package which has a plus or minus symbol gives nothing.
Have you really tried it with a minus?
→ aptitude search zsh-dbg
p zsh-dbg - shell with lots of features (debugging symbols)
> $ aptitude search libstdc++6
> $
>
> This tells it doesn't know what to do with packages which have + or -
> in their name.
Sorry, that's not a bug, that's a feature! :-)
aptitude as well as apt-cache and apt use regular expressions for
searching. "+" is a special character in regular expressions and needs
quoting:
→ aptitude search 'libstdc\+\+6'
i A libstdc++6 - GNU Standard C++ Library v3
p libstdc++6-4.8-dbg - GNU Standard C++ Library v3 (debugging files)
p libstdc++6-4.9-dbg - GNU Standard C++ Library v3 (debugging files)
The only other character which is valid in a package names and a
special character in regular expressions is ".". But it stands for
"any character" in regular expressions and hence has less impact than
"the previous character can be present one or more times".
And JFTR:
→ apt-cache search g++ | wc -l
43150
→ apt search g++ | wc -l
WARNING: apt does not have a stable CLI interface yet. Use with caution in
scripts.
129647
→ aptitude search g++ | wc -l
18466
The numbers are different because apt-cache searches descriptions by
default, too, aptitude only searches in package names. And "apt
search" shows 3 lines per package and lists each package version
seperately. The three examples above show all packages with one or
multiple "g" in their -- or name or description.
Please reopen and retitle this bug report if you think that the
documentation on that is incomplete or if their should be a
commandline switch (or configuration option) to turn off regular
expressions for searching.
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
--- End Message ---
_______________________________________________
Aptitude-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/aptitude-devel