.
authorJim Meyering <jim@meyering.net>
Mon, 20 Jun 1994 14:14:34 +0000 (14:14 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 20 Jun 1994 14:14:34 +0000 (14:14 +0000)
src/basename.c
src/dirname.c
src/echo.c
src/expr.c
src/hostname.c
src/printf.c
src/pwd.c
src/stty.c
src/test.c
src/yes.c

index 7a537b4..835f229 100644 (file)
@@ -40,6 +40,7 @@
 #include <sys/types.h>
 
 #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);
index 5b25f2f..074b3ce 100644 (file)
@@ -32,6 +32,7 @@
 #include <sys/types.h>
 
 #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);
index 6f3acb4..d1d25d5 100644 (file)
@@ -31,6 +31,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <stdio.h>
 #include <sys/types.h>
 #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
index d1b4ce6..719402f 100644 (file)
@@ -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);
index 441c089..d49aa1c 100644 (file)
@@ -32,6 +32,7 @@
 #include <sys/types.h>
 
 #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)
index e341fb8..87a8000 100644 (file)
@@ -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)
     {
index 96c3bbf..c57ef14 100644 (file)
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -32,6 +32,7 @@
 #include <sys/types.h>
 
 #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");
index 801ce8c..8c78ae3 100644 (file)
@@ -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;
index 21a4487..c7a8eb1 100644 (file)
@@ -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)
index 5790603..8dd443f 100644 (file)
--- a/src/yes.c
+++ b/src/yes.c
@@ -32,6 +32,7 @@
 #include <getopt.h>
 
 #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)