CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2011/07/06 22:24:35

Modified files:
        usr.bin/man    : man.1 man.c 

Log message:
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.

Reply via email to