summaryrefslogtreecommitdiffstats
path: root/usr.bin/split
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-02-05 00:42:14 +0000
committerarchie <archie@FreeBSD.org>1999-02-05 00:42:14 +0000
commitd36f71e280dd30b2634d0a76674e24009e71a597 (patch)
tree500f99c00edef9603091b86c8caecacbafb94786 /usr.bin/split
parent1b66210e2af1d93b4335035f0fbb11196e7782dc (diff)
downloadFreeBSD-src-d36f71e280dd30b2634d0a76674e24009e71a597.zip
FreeBSD-src-d36f71e280dd30b2634d0a76674e24009e71a597.tar.gz
Print usage via fprintf(stderr, ..) instead of errx() to avoid progname prefix.
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Diffstat (limited to 'usr.bin/split')
-rw-r--r--usr.bin/split/split.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c
index 84c7bca..602c1d8 100644
--- a/usr.bin/split/split.c
+++ b/usr.bin/split/split.c
@@ -309,6 +309,7 @@ newfile()
static void
usage()
{
- errx(EX_USAGE,
-"usage: split [-b byte_count] [-l line_count] [-p pattern] [file [prefix]]");
+ (void)fprintf(stderr,
+"usage: split [-b byte_count] [-l line_count] [-p pattern] [file [prefix]]\n");
+ exit(EX_USAGE);
}
OpenPOWER on IntegriCloud