Up to [local] / src / usr.bin / man
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_5_0_BASE
Revision 1.43 / (download) - annotate - [select for diffs], Thu Jul 7 04:24:35 2011 UTC (12 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE,
OPENBSD_5_0
Changes since 1.42: +67 -15 lines
Diff to previous 1.42 (colored)
For man -a and -w, drop companion pages that are also in the path, such that we don't display them twice. To be able to do that path check, we have to brace-expand the search path up front - of course, for -a and -w only, so it doesn't slow us down in the standard case. As a free bonus, let -wa print all the filenames without looking at the timestamps. In the past, -w implied -a, so that's not introducing any incompatibility. Issue originally reported and fix OK'd by guenther@, and deraadt@ agrees with the semantics.