Package: dpkg
Version: 1.17.23
Severity: minor

Dear Dpkg Maintainers,

from the dpkg-query(1) man page:

       -S, --search filename-search-pattern...
              Search for packages that own files corresponding to the
              given pattern.  Standard shell wildchars can be used in
              the pattern.  This command will not list extra files
              created by maintainer scripts, nor will it list
              alternatives.

This doesn't explain the following difference:

~ $ dpkg-query -S /bin/ls
coreutils: /bin/ls
~ $ dpkg-query -S /bin/l
dpkg-query: no path found matching pattern /bin/l
~ $ dpkg-query -S bin/ls
patchutils: /usr/bin/lsdiff
kmod: /sbin/lsmod
pciutils: /usr/bin/lspci
lsh-utils: /usr/bin/lsh-upgrade-key
lsdvd: /usr/bin/lsdvd
lsh-utils: /usr/bin/lsh-keygen
util-linux: /bin/lsblk
lsh-utils: /usr/bin/lsh-make-seed
nilfs-tools: /usr/bin/lscp
lsh-utils: /usr/bin/lsh-upgrade
lsscsi: /usr/bin/lsscsi
lsh-utils: /usr/bin/lsh-export-key
usbutils: /usr/bin/lsusb
e2fsprogs: /usr/bin/lsattr
nilfs-tools: /usr/bin/lssu
lsh-utils: /usr/bin/lsh-writekey
initramfs-tools: /usr/bin/lsinitramfs
lsh-utils: /usr/bin/lsh-decrypt-key
suckless-tools: /usr/bin/lsx
lshw-gtk: /usr/bin/lshw-gtk
suckless-tools: /usr/bin/lsw
kmod: /bin/lsmod
lsh-client: /usr/bin/lsh
util-linux: /usr/bin/lslocks
gnupg: /usr/bin/lspgpot
lsof: /usr/bin/lsof
coreutils: /bin/ls
lsh-client: /usr/bin/lshg
util-linux: /usr/bin/lscpu
klibc-utils: /usr/lib/klibc/bin/ls
lsh-utils: /usr/bin/lsh-decode-key
lshw: /usr/bin/lshw
lsb-release: /usr/bin/lsb_release
lsh-client: /usr/bin/lsftp
lsh-utils: /usr/bin/lsh-authorize
~ $

IMHO the man page should explicitly mention that if the parameter to -S
starts with a slash, the parameter is taken as complete file name while
it is taken as substring match on path and file name otherwise.

(This bug report has been triggered by investigations to understand the
bug report https://bugs.debian.org/775313 against debsums.)

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (110, 'experimental'), (109, 
'buildd-unstable'), (109, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.18.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-7+b2
ii  libc6        2.19-13
ii  liblzma5     5.1.1alpha+20120614-2+b3
ii  libselinux1  2.3-2
ii  tar          1.27.1-2+b1
ii  zlib1g       1:1.2.8.dfsg-2+b1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  1.0.9.5

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to