inode should be different to actually mean mandocdb is in used
Sponsored by: gandi.net
This commit is contained in:
parent
772246ef18
commit
24ef74209a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285836
@ -925,7 +925,7 @@ whatis_usage() {
|
||||
|
||||
# Supported commands
|
||||
do_apropos() {
|
||||
[ $(stat -f %i /usr/bin/man) -eq $(stat -f %i /usr/bin/apropos) ] && \
|
||||
[ $(stat -f %i /usr/bin/man) -ne $(stat -f %i /usr/bin/apropos) ] && \
|
||||
exec apropos "$@"
|
||||
search_whatis apropos "$@"
|
||||
}
|
||||
@ -962,7 +962,7 @@ do_manpath() {
|
||||
}
|
||||
|
||||
do_whatis() {
|
||||
[ $(stat -f %i /usr/bin/man) -eq $(stat -f %i /usr/bin/whatis) ] && \
|
||||
[ $(stat -f %i /usr/bin/man) -ne $(stat -f %i /usr/bin/whatis) ] && \
|
||||
exec whatis "$@"
|
||||
search_whatis whatis "$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user