diff --git a/usr.bin/man/man.sh.orig b/usr.bin/man/man.sh --- a/usr.bin/man/man.sh.orig +++ b/usr.bin/man/man.sh @@ -171,7 +171,7 @@ # non-standard width unset use_cat decho " Skipping catpage: non-standard page width" - elif exists "$2" && is_newer $found "$manpage"; then + elif [ -n "$2" ] && exists "$2" && is_newer $found "$manpage"; then # cat page found and is newer, use that use_cat=yes catpage=$found