Package: man-db Version: 2.4.3-3 Severity: normal
Piping 'man' to 'grep -m 1' didn't used to give errors,
but now:
% man bash | grep -m 1 bash ; echo $?
bash - GNU Bourne-Again SHell
man: command exited with status 13: /usr/bin/zsoelim /tmp/zmanejXLZa |
/usr/bin/tbl | /usr/bin/nroff -mandoc -Tascii | /usr/bin/col -b -p -x |
/usr/bin/pager -s
0
And yet if I grep a string that's not present:
% man bash | grep -m 1 baaaaaaaash ; echo $?
1
I'm not sure whether the bug is in 'man-db' or 'grep'.
For debugging, attached is the output of:
{ man --debug bash | grep -m 1 bash ; echo $? ; } 2>&1 | gzip >
/tmp/mangrepm.dump.gz
Hope this helps...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages man-db depends on:
ii bsdmainutils 6.1.4 collection of more utilities from
ii debconf [debconf-2.0] 1.5.4 Debian configuration management sy
ii dpkg 1.13.22 package maintenance system for Deb
ii groff-base 1.18.1.1-12 GNU troff text-formatting system (
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
ii libgdbm3 1.8.3-3 GNU dbm database routines (runtime
man-db recommends no packages.
-- debconf information:
man-db/build-database: true
* man-db/rebuild-database: true
* man-db/install-setuid: true
mangrepm.dump.gz
Description: Binary data

