[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: info -w is slow for man pages

From: Hilmar Preuße
Subject: Re: info -w is slow for man pages
Date: Tue, 18 Oct 2022 21:55:45 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3

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 $?
$ man foo
No manual entry for foo.
$ echo $?

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.



Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]