Package: apt Version: 0.9.7.6 Severity: normal Dear Maintainer,
In lines #146 & #147 below, the docs explain that 'search' supports 'AND': % man apt-cache | grep -B 1 -A 10 -n "search performs" 136- search regex... 137: search performs a full text search on all available package lists 138- for the POSIX regex pattern given, see regex(7). It searches the 139- package names and the descriptions for an occurrence of the regular 140- expression and prints out the package name and the short 141- description, including virtual package names. If --full is given 142- then output identical to show is produced for each matched package, 143- and if --names-only is given then the long description is not 144- searched, only the package name is. 145- 146- Separate arguments can be used to specify multiple search patterns 147- that are and'ed together. However, that built-in 'AND' misses items found with combined separate searches: # built-in 'AND': % apt-cache search foo bar | sort > /tmp/x1 # simulate 'AND' with "sort | uniq -d": % { apt-cache search foo ; apt-cache search bar ; } | sort | uniq -d > /tmp/x2 # show what the built-in 'AND' missed: % diff /tmp/x[12] 9a10,11 > libart-2.0-2 - Library of functions for 2D graphics - runtime files > libart-2.0-dev - Library of functions for 2D graphics - development files HTH... -- Package-specific info: -- (no /etc/apt/preferences present) -- -- (/etc/apt/sources.list present, but not submitted) -- -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/dash Versions of packages apt depends on: ii debian-archive-keyring 2012.4 ii gnupg 1.4.12-6 ii libapt-pkg4.12 0.9.7.6 ii libc6 2.13-35 ii libgcc1 1:4.7.1-4 ii libstdc++6 4.7.1-4 apt recommends no packages. Versions of packages apt suggests: pn apt-doc <none> ii dpkg-dev 1.16.8 ii python-apt 0.8.6 ii synaptic 0.75.13 ii xz-utils 5.1.1alpha+20120614-1 -- debconf-show failed -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org