Package: apt-file Version: 2.5.1 Severity: normal See the following:
$ apt-file --fixed-string list nothing-to-be-found; echo $? bsd-mailx: /etc/mail.rc bsd-mailx: /usr/bin/bsd-mailx bsd-mailx: /usr/share/bsd-mailx/mail.help bsd-mailx: /usr/share/bsd-mailx/mail.tildehelp bsd-mailx: /usr/share/doc/bsd-mailx/README.Debian.gz bsd-mailx: /usr/share/doc/bsd-mailx/changelog.Debian.gz bsd-mailx: /usr/share/doc/bsd-mailx/changelog.gz bsd-mailx: /usr/share/doc/bsd-mailx/copyright bsd-mailx: /usr/share/man/man1/bsd-mailx.1.gz 0 >> $ apt-file --fixed-string list nothing-to-be-found ; echo $? 0 Please return a non-zero status code if the "list" command does not produce output (no package found), so that this status code can be checked e.g. in scripts apt-file ... list "$1" || ... handle user input error -- System Information: Debian Release: 7.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt-file depends on: ii curl 7.26.0-1+wheezy2 ii libapt-pkg-perl 0.1.26+b1 ii libconfig-file-perl 1.50-2 ii liblist-moreutils-perl 0.33-1+b1 ii libregexp-assemble-perl 0.35-7 ii perl 5.14.2-21 ii perl-modules [libfile-temp-perl] 5.14.2-21 Versions of packages apt-file recommends: ii python 2.7.3-4 ii python-apt 0.8.8.2 Versions of packages apt-file suggests: ii openssh-client 1:6.0p1-4 ii sudo 1.8.5p2-1+nmu1 -- 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