Everyone seems to have their favorite order for PATH.  People seldom
seem to remember to make the corresponding changes to MANPATH.

How much resistance would one encounter if the following logic was
used?  Compare to
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/man/src/man.c#311.

if ( (manpath = getenv("MANPATH")) == NULL ) {
    if ( (path = getenv("PATH")) != NULL ) {
        /* for each PATH component
         *    if component ends in /bin or /sbin
         *        replace bin or sbin with man
         *        append to manpath
         */
    } else {
        manpath = MANDIR;
    }
}

This would have the effect of making the default path searched by man
to simply follow the directory order specified by PATH.  There may be
a desire to remove duplicates, but I am not sure how important that
really is (would make -k and -l cleaner).

This would change the behavior documented in the man page.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to