diff options
author | Jim Meyering <jim@meyering.net> | 2004-06-15 18:04:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-06-15 18:04:13 +0000 |
commit | ba01709da8c69d8b8f83aef5d9df05b25c92e0aa (patch) | |
tree | 31cea80c4d402c76cb4721d4535d196523ee3361 /src | |
parent | b10701b78e2b3af1a6962a3930cdcc591b4fbd26 (diff) | |
download | coreutils-ba01709da8c69d8b8f83aef5d9df05b25c92e0aa.tar.xz |
(main): Recognize --help, --version even if
POSIXLY_CORRECT. POSIX does not specify any options, but it
does not prohibit options either, so "unlink" is like "expr" here.
Diffstat (limited to 'src')
-rw-r--r-- | src/unlink.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/unlink.c b/src/unlink.c index ba38b64a4..30ac2152f 100644 --- a/src/unlink.c +++ b/src/unlink.c @@ -71,10 +71,8 @@ main (int argc, char **argv) atexit (close_stdout); - /* Don't recognize --help or --version if POSIXLY_CORRECT is set. */ - if (getenv ("POSIXLY_CORRECT") == NULL) - parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, - usage, AUTHORS, (char const *) NULL); + parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, + usage, AUTHORS, (char const *) NULL); /* The above handles --help and --version. Since there is no other invocation of getopt, handle `--' here. */ |