Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 520034

Summary: app-shells/bash-completion: perldoc should call /usr/bin/man, not just man
Product: Gentoo Linux Reporter: Alex Efros <powerman-asdf>
Component: Current packagesAssignee: Gentoo Shell Tools project <shell-tools>
Status: RESOLVED INVALID    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alex Efros 2014-08-16 07:30:49 UTC
There is a problem with /usr/share/bash-completion/perl (both in bash-completion-1.3-r2 and 2.1) - to get list of available completions it execute `man` command. Sometimes users have own replacement in ~/bin/man which show man pages using non-standard browsers/pagers like vim, and this result in starting vim in background while trying to get completions.

I think it make sense to use `/usr/bin/man` instead of `man` to get completions.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-08-16 09:48:32 UTC

*** This bug has been marked as a duplicate of bug 520030 ***
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-08-16 09:49:14 UTC
oops, not a duplicate
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-07-02 22:11:34 UTC
I'm sorry but this is not something I'm going to call supported. If you replace 'man' with something custom and incompatible with the original man, you get to keep the pieces. Hardcoding paths is a very bad idea, especially if the sole purpose is to workaround something broken on $PATH.