diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/basename.c | 2 | ||||
-rw-r--r-- | src/date.c | 2 | ||||
-rw-r--r-- | src/dirname.c | 2 | ||||
-rw-r--r-- | src/echo.c | 5 | ||||
-rw-r--r-- | src/env.c | 6 | ||||
-rw-r--r-- | src/expr.c | 15 | ||||
-rw-r--r-- | src/id.c | 2 | ||||
-rw-r--r-- | src/logname.c | 2 | ||||
-rw-r--r-- | src/nice.c | 6 | ||||
-rw-r--r-- | src/pathchk.c | 2 | ||||
-rw-r--r-- | src/printf.c | 4 | ||||
-rw-r--r-- | src/sleep.c | 2 | ||||
-rw-r--r-- | src/stty.c | 2 | ||||
-rw-r--r-- | src/su.c | 2 | ||||
-rw-r--r-- | src/tee.c | 2 | ||||
-rw-r--r-- | src/test.c | 4 | ||||
-rw-r--r-- | src/tty.c | 2 | ||||
-rw-r--r-- | src/uname.c | 2 | ||||
-rw-r--r-- | src/who.c | 2 |
19 files changed, 33 insertions, 33 deletions
diff --git a/src/basename.c b/src/basename.c index 167b502d3..6c8e7fe55 100644 --- a/src/basename.c +++ b/src/basename.c @@ -74,7 +74,7 @@ Usage: %s [OPTION]... PATH [SUFFIX]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/date.c b/src/date.c index 2bb28cdbc..9e5605ca7 100644 --- a/src/date.c +++ b/src/date.c @@ -230,7 +230,7 @@ Usage: %s [OPTION]... [+FORMAT] [MMDDhhmm[[CC]YY][.ss]]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else { diff --git a/src/dirname.c b/src/dirname.c index 0aebb9793..a40c8267d 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -63,7 +63,7 @@ Usage: %s [OPTION]... PATH\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/echo.c b/src/echo.c index 6c514fc8c..4a2f673de 100644 --- a/src/echo.c +++ b/src/echo.c @@ -31,6 +31,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <stdio.h> #include <sys/types.h> #include "system.h" +#include "long-options.h" /* echo [-neE] [arg ...] Output the ARGs. If -n is specified, the trailing newline is @@ -71,8 +72,6 @@ on System V systems with the -E option. /* The name this program was run with. */ char *program_name; -void parse_long_options (); - static void usage (status) int status; @@ -83,7 +82,7 @@ Usage: %s [OPTION]... [STRING]...\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else @@ -201,7 +201,7 @@ Usage: %s [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else @@ -209,8 +209,8 @@ Usage: %s [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]\n\ \n\ -u, --unset NAME remove variable from the environment\n\ -i, --ignore-environment start with an empty environment\n\ - --help display this help and exit\n\ - --version output version information and exit\n\ + --help display this help and exit\n\ + --version output version information and exit\n\ \n\ A mere - implies -i. If no COMMAND, print the resulting environment.\n\ "); diff --git a/src/expr.c b/src/expr.c index b39799eba..22e7e83cc 100644 --- a/src/expr.c +++ b/src/expr.c @@ -46,6 +46,7 @@ #include "system.h" #include "version.h" +#include "long-option.h" #if !defined (isascii) || defined (STDC_HEADERS) #undef isascii @@ -54,10 +55,6 @@ #define ISDIGIT(c) (isascii (c) && isdigit (c)) -#if !__STDC__ -#define const -#endif - #define NEW(type) ((type *) xmalloc (sizeof (type))) #define OLD(x) free ((char *) x) @@ -91,7 +88,6 @@ void error (); char *xstrdup (); char *strstr (); char *xmalloc (); -void parse_long_options (); static VALUE *docolon (); static VALUE *eval (); @@ -121,7 +117,7 @@ Usage: %s EXPRESSION\n\ program_name, program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else { @@ -155,7 +151,12 @@ separates increasing precedence groups. EXPRESSION may be:\n\ \n\ STRING : REGEXP anchored pattern match of REGEXP in STRING\n\ \n\ - ( EXPRESSION ) value of EXPRESSION\n\ + match STRING REGEXP same as STRING : REGEXP\n\ + substr STRING POS LENGTH substring of STRING, POS counted from 1\n\ + index STRING CHARS index in STRING where any CHARS is found, or 0\n\ + length STRING length of STRING\n\ +\n\ + ( EXPRESSION ) value of EXPRESSION\n\ "); printf ("\ \n\ @@ -369,7 +369,7 @@ Usage: %s [OPTION]... [USERNAME]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/logname.c b/src/logname.c index a75208d10..f8fcf3821 100644 --- a/src/logname.c +++ b/src/logname.c @@ -59,7 +59,7 @@ Usage: %s [OPTION]...\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/nice.c b/src/nice.c index 74bac8835..616a8f31c 100644 --- a/src/nice.c +++ b/src/nice.c @@ -180,7 +180,7 @@ Usage: %s [OPTION]... [COMMAND [ARG]...]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else @@ -188,8 +188,8 @@ Usage: %s [OPTION]... [COMMAND [ARG]...]\n\ \n\ -ADJUST increment priority by ADJUST first\n\ -n, --adjustment ADJUST same as -ADJUST\n\ - --help display this help and exit\n\ - --version output version information and exit\n\ + --help display this help and exit\n\ + --version output version information and exit\n\ \n\ With no COMMAND, print the current scheduling priority. ADJUST is 10\n\ by default. Range goes from -20 (highest priority) to 19 (lowest).\n\ diff --git a/src/pathchk.c b/src/pathchk.c index 760742d1b..afb663a62 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -367,7 +367,7 @@ Usage: %s [OPTION]... PATH...\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/printf.c b/src/printf.c index ca13af365..c6d476b6f 100644 --- a/src/printf.c +++ b/src/printf.c @@ -61,6 +61,7 @@ #include "system.h" #include "version.h" +#include "long-option.h" #if !defined (isascii) || defined (STDC_HEADERS) #undef isascii @@ -82,7 +83,6 @@ unsigned long strtoul (); char *xmalloc (); void error (); -void parse_long_options (); static double xstrtod (); static int print_esc (); @@ -111,7 +111,7 @@ Usage: %s FORMAT [ARGUMENT]...\n\ program_name, program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/sleep.c b/src/sleep.c index 168c31b91..a98ce9da9 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -63,7 +63,7 @@ Usage: %s [OPTION]... NUMBER[SUFFIX]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/stty.c b/src/stty.c index dec68a7a7..c4d0946b2 100644 --- a/src/stty.c +++ b/src/stty.c @@ -452,7 +452,7 @@ Usage: %s [OPTION]... [SETTING]...\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else { @@ -557,7 +557,7 @@ Usage: %s [OPTION]... [-] [USER [ARG]...]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else @@ -76,7 +76,7 @@ Usage: %s [OPTION]... [FILE]...\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/test.c b/src/test.c index d1bc7ad28..c3d5c54cb 100644 --- a/src/test.c +++ b/src/test.c @@ -1008,7 +1008,7 @@ posixtest () } #if defined (TEST_STANDALONE) -void parse_long_options (); +#include "long-option.h" static void usage (status) @@ -1022,7 +1022,7 @@ Usage: %s EXPRESSION\n\ program_name, program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else { @@ -129,7 +129,7 @@ Usage: %s [OPTION]...\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else diff --git a/src/uname.c b/src/uname.c index 5d5ab0f3f..01b5f020c 100644 --- a/src/uname.c +++ b/src/uname.c @@ -194,7 +194,7 @@ Usage: %s [OPTION]...\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else @@ -468,7 +468,7 @@ Usage: %s [OPTION]... [ FILE | ARG1 ARG2 ]\n\ program_name); if (status != 0) - fprintf (stderr, "\nTry `%s --help' for more information.\n", + fprintf (stderr, "Try `%s --help' for more information.\n", program_name); else |