[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"uname x" missing a diagnostic
From: |
Paul Eggert |
Subject: |
"uname x" missing a diagnostic |
Date: |
Mon, 07 Jun 2004 13:37:38 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
The command "uname x" should emit a diagnostic. Here's a patch.
2004-06-07 Paul Eggert <address@hidden>
* src/uname.c (main): Fix typo introduced on 2003-05-10 that
prevented a diagnostic of any operands.
Index: src/uname.c
===================================================================
RCS file: /home/meyering/coreutils/cu/src/uname.c,v
retrieving revision 1.57
diff -p -u -r1.57 uname.c
--- src/uname.c 21 Jan 2004 23:49:31 -0000 1.57
+++ src/uname.c 7 Jun 2004 20:33:56 -0000
@@ -210,7 +210,7 @@ main (int argc, char **argv)
}
}
- if (argc < optind)
+ if (optind != argc)
{
error (0, 0, _("too many arguments"));
usage (EXIT_FAILURE);
- "uname x" missing a diagnostic,
Paul Eggert <=