summaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-26 00:11:14 +0000
committerJim Meyering <jim@meyering.net>1993-10-26 00:11:14 +0000
commitd7c526e66d7c4d3d11ca80c141b9fae18f0a9668 (patch)
tree6aad3a466a53d24a42c6b94a98edd429ff3e95b8 /src/expr.c
parentcfe240bbd8520c852962f5feac1cfc5cf4903eb4 (diff)
downloadcoreutils-d7c526e66d7c4d3d11ca80c141b9fae18f0a9668.tar.xz
merge with 1.8.1i
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/expr.c b/src/expr.c
index 22e7e83cc..26c4ffa0d 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -46,7 +46,7 @@
#include "system.h"
#include "version.h"
-#include "long-option.h"
+#include "long-options.h"
#if !defined (isascii) || defined (STDC_HEADERS)
#undef isascii
@@ -110,18 +110,17 @@ static void
usage (status)
int status;
{
- fprintf (status == 0 ? stdout : stderr, "\
-Usage: %s EXPRESSION\n\
- or: %s OPTION\n\
-",
- program_name, program_name);
-
if (status != 0)
fprintf (stderr, "Try `%s --help' for more information.\n",
program_name);
else
{
printf ("\
+Usage: %s EXPRESSION\n\
+ or: %s OPTION\n\
+",
+ program_name, program_name);
+ printf ("\
\n\
--help display this help and exit\n\
--version output version information and exit\n\
@@ -166,7 +165,6 @@ Pattern matches return the string matched between \\( and \\) or null; if\n\
\\( and \\) are not used, they return the number of characters matched or 0.\n\
");
}
-
exit (status);
}