aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2023-12-27 17:35:08 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2023-12-27 17:36:51 +0000
commitc4368d03e52c7c97d583ee6b81a59510d371ffbb (patch)
treeabe088dc22f41a198511e1ba9ea5b396818f3009 /usr.bin/man
parent4a0c6403b0ec5c6223c2b798fab231a4fac0a6d1 (diff)
downloadsrc-c4368d03e52c7c97d583ee6b81a59510d371ffbb.tar.gz
src-c4368d03e52c7c97d583ee6b81a59510d371ffbb.zip
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index b18895a91d96..87594699b2c2 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -143,8 +143,8 @@ check_cat() {
if exists "$1"; then
use_cat=yes
catpage=$found
- setup_cattool $catpage
- decho " Found catpage $catpage"
+ setup_cattool "$catpage"
+ decho " Found catpage \"$catpage\""
return 0
else
return 1
@@ -169,8 +169,8 @@ check_man() {
# cat page found and is newer, use that
use_cat=yes
catpage=$found
- setup_cattool $catpage
- decho " Using catpage $catpage"
+ setup_cattool "$catpage"
+ decho " Using catpage \"$catpage\""
else
# no cat page or is older
unset use_cat
@@ -342,10 +342,10 @@ man_display_page() {
ret=0
else
if [ $debug -gt 0 ]; then
- decho "Command: $cattool $catpage | $MANPAGER"
+ decho "Command: $cattool \"$catpage\" | $MANPAGER"
ret=0
else
- eval "$cattool $catpage | $MANPAGER"
+ eval "$cattool \"$catpage\" | $MANPAGER"
ret=$?
fi
fi
@@ -370,7 +370,7 @@ man_display_page() {
pipeline="mandoc $mandoc_args | $MANPAGER"
fi
- if ! eval "$cattool $manpage | $testline" ;then
+ if ! eval "$cattool \"$manpage\" | $testline" ;then
if which -s groff; then
man_display_page_groff
else
@@ -383,10 +383,10 @@ man_display_page() {
fi
if [ $debug -gt 0 ]; then
- decho "Command: $cattool $manpage | $pipeline"
+ decho "Command: $cattool \"$manpage\" | $pipeline"
ret=0
else
- eval "$cattool $manpage | $pipeline"
+ eval "$cattool \"$manpage\" | $pipeline"
ret=$?
fi
}
@@ -476,10 +476,10 @@ man_display_page_groff() {
fi
if [ $debug -gt 0 ]; then
- decho "Command: $cattool $manpage | $pipeline"
+ decho "Command: $cattool \"$manpage\" | $pipeline"
ret=0
else
- eval "$cattool $manpage | $pipeline"
+ eval "$cattool \"$manpage\" | $pipeline"
ret=$?
fi
}