1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 10:51:48 +02:00

(main): Don't recognize --help, --h, --he, --version, --v, etc.

if the POSIXLY_CORRECT environment variable is set.
This commit is contained in:
Jim Meyering
1996-05-18 18:37:11 +00:00
parent 971c5b1379
commit b2191ea8e1

View File

@@ -109,7 +109,9 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
parse_long_options (argc, argv, "echo", PACKAGE_VERSION, usage);
/* Don't recognize --help or --version if POSIXLY_CORRECT is set. */
if (getenv ("POSIXLY_CORRECT") == NULL)
parse_long_options (argc, argv, "echo", PACKAGE_VERSION, usage);
/* System V machines already have a /bin/sh with a v9 behaviour. We
use the identical behaviour for these machines so that the