summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-05-24 19:10:13 -0500
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-05-24 19:10:13 -0500
commite59d83aeb897d430f8b8fe21fe40346f63c83372 (patch)
tree7107e31d5f287e6f7e1bb61faca77e735854623e /m4
parent1e4d06f1dc9fd53dbc790bc7fc71f12021b051ec (diff)
downloadgroff-git-e59d83aeb897d430f8b8fe21fe40346f63c83372.tar.gz
m4/groff.m4: Fix computational grammar error.
* m4/groff.m4 (GROFF_CHECK_GROHTML_PROGRAMS): Fix logic error in computation of verb to be used in notice message. Also fix code style nit: drop unnecessary quotation when setting shell variable to empty value.
Diffstat (limited to 'm4')
-rw-r--r--m4/groff.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4
index 36b2078ac..f51a11c8f 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -189,7 +189,7 @@ AC_DEFUN([GROFF_CHECK_GROHTML_PROGRAMS], [
plural=`set $missing; test $[#] -gt 1 && echo s`
oxford=`set $missing; test $[#] -gt 2 && echo ,`
missing=`set $missing
- missing=""
+ missing=
while test $[#] -gt 0
do
case $[#] in
@@ -200,12 +200,13 @@ AC_DEFUN([GROFF_CHECK_GROHTML_PROGRAMS], [
shift
done
echo $missing`
- if test $[#] -gt 1
- then
- verb=were
- else
- verb=was
- fi
+ verb=`set $missing
+ if test $[#] -gt 1
+ then
+ echo were
+ else
+ echo was
+ fi`
grohtml_notice="The program$plural $missing $verb not found in \
\$PATH.