[Bash-completion-commits] [bash-completion] 01/01: man: Use -w instead of --path

Ville Skyttä scop-guest at moszumanska.debian.org
Wed Apr 2 09:01:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 492773098004700d670b4e1c12eebac506471d90
Author: Matthieu Crapet <mcrapet at gmail.com>
Date:   Wed Apr 2 11:34:49 2014 +0200

    man: Use -w instead of --path
    
    --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 at gmail.com>
---
 completions/man | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/completions/man b/completions/man
index 6e42f85..e1b587d 100644
--- a/completions/man
+++ b/completions/man
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list