Subject: [PATCH] man: Fix an inverted test that prevented dummy-man from working
From: Alban Bedel <[email-masked]>
To: [email-masked]
Cc: Alban Bedel <[email-masked]>
Date: Mon, 22 Sep 2014 11:53:13 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

The test for the argument count was broken, the upper limit test used
less-or-equal 1 instead of greater than 1.
---
 man/dummy-man | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man/dummy-man b/man/dummy-man
index bf31912..65b85d5 100755
--- a/man/dummy-man
+++ b/man/dummy-man
@@ -39,7 +39,7 @@ while test $# -gt 0; do
 done
 
 test $# -gt 0 || fatal_ "missing argument"
-test $# -le 1 || fatal_ "too many non-option arguments"
+test $# -gt 1 || fatal_ "too many non-option arguments"
 
 baseout=`basename_ "$output"`
 sed 's/^/WARNING: /' >&2 <<END
-- 
2.1.0