summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-04-25 18:34:37 +0000
committerJim Meyering <jim@meyering.net>1994-04-25 18:34:37 +0000
commit085c609f77d5ea68b0bca13d4d0f204d129817b0 (patch)
tree3052f0bd27d12c32a22f19d34cf58bc5a576380c /src
parent36f920112bcda1cd28278ea2284196b2f5eda160 (diff)
downloadcoreutils-085c609f77d5ea68b0bca13d4d0f204d129817b0.tar.xz
merge with 1.9.4g
Diffstat (limited to 'src')
-rw-r--r--src/test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test.c b/src/test.c
index 6cf8565f6..a53362db8 100644
--- a/src/test.c
+++ b/src/test.c
@@ -88,6 +88,9 @@ extern uid_t geteuid ();
#define F_OK 0
#endif /* R_OK */
+/* This name is used solely when printing --version information. */
+#define COMMAND_NAME "test"
+
/* The following few defines control the truth and false output of each stage.
TRUE and FALSE are what we use to compute the final output value.
SHELL_BOOLEAN is the form which returns truth or falseness in shell terms.
@@ -1122,7 +1125,7 @@ test_command (margc, margv)
if (margv[0] && strcmp (margv[0], "[") == 0)
{
- parse_long_options (argc, argv, "test", usage);
+ parse_long_options (argc, argv, COMMAND_NAME, usage);
--margc;
@@ -1139,7 +1142,7 @@ test_command (margc, margv)
if (pos >= argc)
test_exit (SHELL_BOOLEAN (FALSE));
- parse_long_options (argc, argv, usage);
+ parse_long_options (argc, argv, COMMAND_NAME, usage);
value = posixtest ();
if (pos != argc)