Add quotes to variables in examples in manpage. - geomyidae - a small C-based gopherd (mirror)
HTML git clone git://git.codemadness.org/geomyidae
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 012f8dcae306c886b90f1f6e1c885a64bfc60b18
DIR parent bf47ea180912ad88aa70a7b6c1319ad4111cc585
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 15 Feb 2026 19:12:08 +0100
Add quotes to variables in examples in manpage.
Diffstat:
M geomyidae.8 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
DIR diff --git a/geomyidae.8 b/geomyidae.8
@@ -608,7 +608,7 @@ ex.
NAME=$1
HOSTNAME=$2
echo ""
-echo Hello $NAME - welcome to $HOSTNAME
+echo "Hello $NAME - welcome to $HOSTNAME"
exit 0
.Ed
.
@@ -644,10 +644,10 @@ ARCHIVE="/var/gopher/textfiles/"
echo "[i|Search results for \\"${KWRD}\\":|Err||]"
echo "[i||Err||]"
# grep(1) recursive, case-insensitive KWRD search of ARCHIVE:
-for RESULT in $(/usr/bin/grep -i -l -m1 ${KWRD} -r $ARCHIVE)
+for RESULT in $(/usr/bin/grep -i -l -m1 "${KWRD}" -r "${ARCHIVE}")
do
- DESC=$(/usr/bin/basename ${RESULT})
- PATH=$(echo "$RESULT" | /usr/bin/sed 's/^\\/var\\/gopher//')
+ DESC=$(/usr/bin/basename "${RESULT}")
+ PATH=$(echo "${RESULT}" | /usr/bin/sed 's/^\\/var\\/gopher//')
echo "[0|${DESC}|${PATH}|frog.bog|70]"
done
exit 0