aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-07-24 09:20:02 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-07-24 09:20:02 +0000
commit24ef74209add6618ee89bbaf526f703719354847 (patch)
treeb9ef0c1f6d0b79cba964a92f1f980aa1784c912a /usr.bin/man
parent772246ef1848f097b9610a3c2ec5214a69122cb5 (diff)
downloadsrc-24ef74209add6618ee89bbaf526f703719354847.tar.gz
src-24ef74209add6618ee89bbaf526f703719354847.zip
inode should be different to actually mean mandocdb is in used
Sponsored by: gandi.net
Notes
Notes: svn path=/head/; revision=285836
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 504ca0c22861..e125e5be3f85 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -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 "$@"
}