#include <sys/types.h>
#include "system.h"
+#include "version.h"
#include "long-options.h"
char *basename ();
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);
#include <sys/types.h>
#include "system.h"
+#include "version.h"
#include "long-options.h"
void strip_trailing_slashes ();
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);
#include <stdio.h>
#include <sys/types.h>
#include "system.h"
+#include "version.h"
#include "long-options.h"
/* echo [-neE] [arg ...]
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
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);
#include <sys/types.h>
#include "system.h"
+#include "version.h"
#include "long-options.h"
#if !defined(HAVE_SETHOSTNAME) && defined(HAVE_SYSINFO) && \
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)
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)
{
#include <sys/types.h>
#include "system.h"
+#include "version.h"
#include "long-options.h"
void error ();
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");
#endif
#include "system.h"
+#include "version.h"
#include "long-options.h"
#if defined(GWINSZ_BROKEN) /* Such as for SCO UNIX 3.2.2. */
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;
# include "filecntl.h"
#else /* TEST_STANDALONE */
# include "system.h"
+# include "version.h"
# if !defined (S_IXUGO)
# define S_IXUGO 0111
# endif /* S_IXUGO */
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;
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)
#include <getopt.h>
#include "long-options.h"
+#include "version.h"
/* The name this program was run with. */
char *program_name;
{
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)