summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-11-18 02:50:21 +0000
committerJim Meyering <jim@meyering.net>1996-11-18 02:50:21 +0000
commita4f0dde547cd00ad892de67995dd21674a07746b (patch)
treec303017bc72caf957af67347bf5b0ae986d18af3 /src
parente604ed756f47f5a12b561e8c6e2fdc7bcf8089f3 (diff)
downloadcoreutils-a4f0dde547cd00ad892de67995dd21674a07746b.tar.xz
(main): Ignore -a, for compatibility with SVR4.
Diffstat (limited to 'src')
-rw-r--r--src/id.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/id.c b/src/id.c
index 2cce7b85e..6c54633bc 100644
--- a/src/id.c
+++ b/src/id.c
@@ -1,5 +1,5 @@
/* id -- print real and effective UIDs and GIDs
- Copyright (C) 89, 90, 91, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1989-1995, 1996 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -104,13 +104,16 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- while ((optc = getopt_long (argc, argv, "gnruG", longopts, (int *) 0))
+ while ((optc = getopt_long (argc, argv, "agnruG", longopts, (int *) 0))
!= EOF)
{
switch (optc)
{
case 0:
break;
+ case 'a':
+ /* Ignore -a, for compatibility with SVR4. */
+ break;
case 'g':
just_group = 1;
break;
@@ -371,6 +374,7 @@ usage (int status)
printf (_("\
Print information for USERNAME, or the current user.\n\
\n\
+ -a ignore, for compatibility with other versions\n\
-g, --group print only the group ID\n\
-G, --groups print only the supplementary groups\n\
-n, --name print a name instead of a number, for -ugG\n\