Am 17.10.2022 um 22:45 teilte Gavin Smith mit:

Hi Gavin,

An improvement would be to check the exit status of "man -a" and if
not found, to fall back to loading the man page as usual.


I guess you rather want to check for exit status of "man -w", correct? This sounds like a reasonable idea to me.

Thanks for your help!

$ uname -a
SunOS login 5.10 Generic_150400-17 sun4v sparc SUNW,SPARC-Enterprise-T5220
$ man -w foo
usage:  man [-] [-adFlrt] [-M path] [-T macro-package ] [ -s section ] name ...
         man [-M path] -k keyword ...
         man [-M path] -f file ...
$ echo $?
2
$ man foo
No manual entry for foo.
$ echo $?
0
$

This would allow us to keep the performance improvement from using
"man -a" (presumably Hilmar is using it for something and isn't just
looking for problems for no reason).

Well, I'm just a got a issue report from a user and reported it to you.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021839

Hilmar
--
sigfault

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to