aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2024-05-20 16:02:21 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2024-05-20 16:02:21 +0000
commit37be4197f72ae3a61bd5e93d2ebdc9bd6d09ed21 (patch)
tree3c8119bd64029369c0215b4f04c4215cd762a03b /usr.bin/man
parent6edb14c006f6eafe1f31f54ce7fe2158321fa18d (diff)
downloadsrc-37be4197f72ae3a61bd5e93d2ebdc9bd6d09ed21.tar.gz
src-37be4197f72ae3a61bd5e93d2ebdc9bd6d09ed21.zip
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 03803b777463..af638527f497 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -201,6 +201,10 @@ decho() {
# Returns true if glob resolves to a real file and store the first
# found filename in the variable $found
exists() {
+ if [ -z "$1" ]; then
+ return 1
+ fi
+
local IFS
# Don't accidentally inherit callers IFS (breaks perl manpages)