Skip to content

Commit

Permalink
man: Use -w instead of --path
Browse files Browse the repository at this point in the history
--path is an alias command line option for -w.
It is available since man-db 2.6.1-pre1 (2012-02-05).

See commit:
http://git.savannah.gnu.org/cgit/man-db.git/commit/?id=e37bc92f352c97c61ef63de745e43574d27b1276

For portability (like man-1.6g), prefer using original -w switch.

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>
  • Loading branch information
mcrapet authored and scop committed Apr 2, 2014
1 parent 867282a commit 4927730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/man
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ _man()

local manpath
if [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then
manpath=$( manpath 2>/dev/null || command man --path )
manpath=$( manpath 2>/dev/null || command man -w )
else
manpath=$MANPATH
fi
Expand Down

0 comments on commit 4927730

Please sign in to comment.