Fix man -k with mandocdb
If apropos(1) and whatis(1) are not hardlinks to man(1) that means the system is using mandocdb, then man -k should spawn apropos(1) and/or whatis(1) directly Reported by: kevlo Tested by: kevlo Sponsored by: gandi.net
This commit is contained in:
parent
4615998165
commit
772246ef18
@ -925,6 +925,8 @@ whatis_usage() {
|
||||
|
||||
# Supported commands
|
||||
do_apropos() {
|
||||
[ $(stat -f %i /usr/bin/man) -eq $(stat -f %i /usr/bin/apropos) ] && \
|
||||
exec apropos "$@"
|
||||
search_whatis apropos "$@"
|
||||
}
|
||||
|
||||
@ -960,6 +962,8 @@ do_manpath() {
|
||||
}
|
||||
|
||||
do_whatis() {
|
||||
[ $(stat -f %i /usr/bin/man) -eq $(stat -f %i /usr/bin/whatis) ] && \
|
||||
exec whatis "$@"
|
||||
search_whatis whatis "$@"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user