diff options
author | Jim Meyering <jim@meyering.net> | 1996-11-18 02:50:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-11-18 02:50:21 +0000 |
commit | a4f0dde547cd00ad892de67995dd21674a07746b (patch) | |
tree | c303017bc72caf957af67347bf5b0ae986d18af3 | |
parent | e604ed756f47f5a12b561e8c6e2fdc7bcf8089f3 (diff) | |
download | coreutils-a4f0dde547cd00ad892de67995dd21674a07746b.tar.xz |
(main): Ignore -a, for compatibility with SVR4.
-rw-r--r-- | src/id.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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\ |