aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorGordon Tetlow <gordon@FreeBSD.org>2010-10-06 07:22:56 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2010-10-06 07:22:56 +0000
commit1d7c660a1394fee2efb341bc16d75d10e93ffc8a (patch)
tree8d4df250a4a77c3a5c78117685cf4859e05f1e6c /usr.bin/man
parent80f68bebbd59519b1a8b0f84dfb2b0bfafd6f5b6 (diff)
Notes
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index a008029c76f9..cca7638cf082 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -368,7 +368,9 @@ man_find_and_display() {
if find_file $p $sect $MACHINE "$1"; then
found_page=yes
man_display_page
- if [ -z "$aflag" ]; then
+ if [ -n "$aflag" ]; then
+ continue 2
+ else
return
fi
fi
@@ -378,7 +380,9 @@ man_find_and_display() {
if find_file $p $sect $MACHINE_ARCH "$1"; then
found_page=yes
man_display_page
- if [ -z "$aflag" ]; then
+ if [ -n "$aflag" ]; then
+ continue 2
+ else
return
fi
fi
@@ -387,7 +391,9 @@ man_find_and_display() {
if find_file $p $sect '' "$1"; then
found_page=yes
man_display_page
- if [ -z "$aflag" ]; then
+ if [ -n "$aflag" ]; then
+ continue 2
+ else
return
fi
fi