Package: man-db Version: 2.6.1-2 Severity: normal Dear Maintainer,
The man page says 'apropos' provides useful exit codes: # show exit codes, no blank lines. % man apropos | grep -n -A 7 EXIT | sed '/^.*-$/d' 105:EXIT STATUS 106- 0 Successful program execution. 108- 1 Usage, syntax or configuration file error. 110- 2 Operational error. 112- 16 Nothing was found that matched the criteria specified. So the following should return '16': # search for a non-existent string, print exit code. % apropos nosuchthinganywhere ; echo $? 0 For comparison, the `whatis` util does return '16': % whatis nosuchthinganywhere ; echo $? nosuchthinganywhere: nothing appropriate. 16 Attached is the output of: % apropos --debug nosuchthinganywhere 2> /tmp/apropos.log HTH... -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.2.0-2-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 man-db depends on: ii bsdmainutils 9.0.1 ii debconf [debconf-2.0] 1.5.43 ii dpkg 1.16.3 ii groff-base 1.21-7 ii libc6 2.13-32 ii libgdbm3 1.8.3-10 ii libpipeline1 1.2.1-1 ii zlib1g 1:1.2.7.dfsg-1 man-db recommends no packages. Versions of packages man-db suggests: ii dillo [www-browser] 3.0.2-2 ii elinks [www-browser] 0.12~pre5-7 ii galeon [www-browser] 2.0.7-2.1+b1 ii groff 1.21-7 ii iceape [www-browser] 2.7.4-1 ii iceweasel [www-browser] 10.0.4esr-2 ii konqueror [www-browser] 4:4.7.4-2 ii less 444-2 ii links [www-browser] 2.6-1 ii lynx-cur [www-browser] 2.8.8dev.12-2 ii opera-static [www-browser] 7.23-20031119.1 -- debconf information: man-db/build-database: true * man-db/rebuild-database: true * man-db/install-setuid: true man-db/auto-update: true
apropos.log.gz
Description: GNU Zip compressed data