From: Jim Meyering Date: Tue, 15 Jun 2004 18:04:13 +0000 (+0000) Subject: (main): Recognize --help, --version even if X-Git-Tag: COREUTILS-5_3_0~1333 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba01709da8c69d8b8f83aef5d9df05b25c92e0aa;p=platform%2Fupstream%2Fcoreutils.git (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. --- diff --git a/src/unlink.c b/src/unlink.c index ba38b64..30ac215 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. */