1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

merge with 1.8.1b

This commit is contained in:
Jim Meyering
1993-10-12 01:52:24 +00:00
parent f12b53b2ce
commit 87fa23e641
21 changed files with 372 additions and 84 deletions

View File

@@ -57,6 +57,19 @@ on System V systems with the -E option.
# define VALID_ECHO_OPTIONS "n"
#endif /* !V9_ECHO */
/* The name this program was run with. */
char *program_name;
void parse_long_options ();
static void
usage ()
{
fprintf (stderr, "Usage: %s [{--help,--version}] [-ne] [string ...]\n",
program_name);
exit (1);
}
/* Print the words in LIST to standard output. If the first word is
`-n', then don't print a trailing newline. We also support the
echo syntax from Version 9 unix systems. */
@@ -67,6 +80,10 @@ main (argc, argv)
{
int display_return = 1, do_v9 = 0;
program_name = argv[0];
parse_long_options (argc, argv, usage);
/* System V machines already have a /bin/sh with a v9 behaviour. We
use the identical behaviour for these machines so that the
existing system shell scripts won't barf. */