The command "uname x" should emit a diagnostic. Here's a patch.
2004-06-07 Paul Eggert <[EMAIL PROTECTED]>
* 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);
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils