aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/split
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>1999-02-05 00:42:14 +0000
committerArchie Cobbs <archie@FreeBSD.org>1999-02-05 00:42:14 +0000
commitd37fcb98e372d32af6a3e0b03cc630f0e468d2ae (patch)
treeb6d9142cc60ea9e09c17f8beabdaaabdb3d32874 /usr.bin/split
parent820165ecfdedeabb7e27919f633a6e82f997f27a (diff)
downloadsrc-d37fcb98e372d32af6a3e0b03cc630f0e468d2ae.tar.gz
src-d37fcb98e372d32af6a3e0b03cc630f0e468d2ae.zip
Print usage via fprintf(stderr, ..) instead of errx() to avoid progname prefix.
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
Notes
Notes: svn path=/head/; revision=43625
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 84c7bca97b5b..602c1d8c5296 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);
}