From 7a3fb2d7ad5117e0a156ef90ab6f08a32f7436f7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 20 Jun 1994 14:14:34 +0000 Subject: [PATCH] . --- src/basename.c | 3 ++- src/dirname.c | 3 ++- src/echo.c | 3 ++- src/expr.c | 2 +- src/hostname.c | 3 ++- src/printf.c | 2 +- src/pwd.c | 3 ++- src/stty.c | 3 ++- src/test.c | 5 +++-- src/yes.c | 3 ++- 10 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/basename.c b/src/basename.c index 7a537b4..835f229 100644 --- a/src/basename.c +++ b/src/basename.c @@ -40,6 +40,7 @@ #include #include "system.h" +#include "version.h" #include "long-options.h" char *basename (); @@ -82,7 +83,7 @@ main (argc, argv) program_name = argv[0]; - parse_long_options (argc, argv, "basename", usage); + parse_long_options (argc, argv, "basename", version_string, usage); if (argc == 1 || argc > 3) usage (1); diff --git a/src/dirname.c b/src/dirname.c index 5b25f2f..074b3ce 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -32,6 +32,7 @@ #include #include "system.h" +#include "version.h" #include "long-options.h" void strip_trailing_slashes (); @@ -72,7 +73,7 @@ main (argc, argv) program_name = argv[0]; - parse_long_options (argc, argv, "dirname", usage); + parse_long_options (argc, argv, "dirname", version_string, usage); if (argc != 2) usage (1); diff --git a/src/echo.c b/src/echo.c index 6f3acb4..d1d25d5 100644 --- a/src/echo.c +++ b/src/echo.c @@ -31,6 +31,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include "system.h" +#include "version.h" #include "long-options.h" /* echo [-neE] [arg ...] @@ -119,7 +120,7 @@ main (argc, argv) program_name = argv[0]; - parse_long_options (argc, argv, "echo", usage); + parse_long_options (argc, argv, "echo", version_string, usage); /* System V machines already have a /bin/sh with a v9 behaviour. We use the identical behaviour for these machines so that the diff --git a/src/expr.c b/src/expr.c index d1b4ce6..719402f 100644 --- a/src/expr.c +++ b/src/expr.c @@ -178,7 +178,7 @@ main (argc, argv) program_name = argv[0]; - parse_long_options (argc, argv, "expr", usage); + parse_long_options (argc, argv, "expr", version_string, usage); if (argc == 1) usage (1); diff --git a/src/hostname.c b/src/hostname.c index 441c089..d49aa1c 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -32,6 +32,7 @@ #include #include "system.h" +#include "version.h" #include "long-options.h" #if !defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && \ @@ -91,7 +92,7 @@ main (argc, argv) program_name = argv[0]; - parse_long_options (argc, argv, "hostname", usage); + parse_long_options (argc, argv, "hostname", version_string, usage); #ifdef HAVE_SETHOSTNAME if (argc == 2) diff --git a/src/printf.c b/src/printf.c index e341fb8..87a8000 100644 --- a/src/printf.c +++ b/src/printf.c @@ -156,7 +156,7 @@ main (argc, argv) program_name = argv[0]; exit_status = 0; - parse_long_options (argc, argv, "printf", usage); + parse_long_options (argc, argv, "printf", version_string, usage); if (argc == 1) { diff --git a/src/pwd.c b/src/pwd.c index 96c3bbf..c57ef14 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -32,6 +32,7 @@ #include #include "system.h" +#include "version.h" #include "long-options.h" void error (); @@ -68,7 +69,7 @@ main (argc, argv) program_name = argv[0]; - parse_long_options (argc, argv, "pwd", usage); + parse_long_options (argc, argv, "pwd", version_string, usage); if (argc != 1) error (0, 0, "ignoring non-option arguments"); diff --git a/src/stty.c b/src/stty.c index 801ce8c..8c78ae3 100644 --- a/src/stty.c +++ b/src/stty.c @@ -58,6 +58,7 @@ #endif #include "system.h" +#include "version.h" #include "long-options.h" #if defined(GWINSZ_BROKEN) /* Such as for SCO UNIX 3.2.2. */ @@ -642,7 +643,7 @@ main (argc, argv) program_name = argv[0]; - parse_long_options (argc, argv, "stty", usage); + parse_long_options (argc, argv, "stty", version_string, usage); output_type = changed; verbose_output = 0; diff --git a/src/test.c b/src/test.c index 21a4487..c7a8eb1 100644 --- a/src/test.c +++ b/src/test.c @@ -44,6 +44,7 @@ # include "filecntl.h" #else /* TEST_STANDALONE */ # include "system.h" +# include "version.h" # if !defined (S_IXUGO) # define S_IXUGO 0111 # endif /* S_IXUGO */ @@ -1135,7 +1136,7 @@ test_command (margc, margv) if (margv[0] && strcmp (margv[0], "[") == 0) { - parse_long_options (argc, argv, COMMAND_NAME, usage); + parse_long_options (argc, argv, COMMAND_NAME, version_string, usage); --margc; @@ -1152,7 +1153,7 @@ test_command (margc, margv) if (pos >= argc) test_exit (SHELL_BOOLEAN (FALSE)); - parse_long_options (argc, argv, COMMAND_NAME, usage); + parse_long_options (argc, argv, COMMAND_NAME, version_string, usage); value = posixtest (); if (pos != argc) diff --git a/src/yes.c b/src/yes.c index 5790603..8dd443f 100644 --- a/src/yes.c +++ b/src/yes.c @@ -32,6 +32,7 @@ #include #include "long-options.h" +#include "version.h" /* The name this program was run with. */ char *program_name; @@ -64,7 +65,7 @@ main (argc, argv) { program_name = argv[0]; - parse_long_options (argc, argv, "yes", usage); + parse_long_options (argc, argv, "yes", version_string, usage); if (argc == 1) while (1) -- 2.7.4