summaryrefslogtreecommitdiffstats
path: root/bin/ed
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-02-09 17:37:39 +0000
committerru <ru@FreeBSD.org>2005-02-09 17:37:39 +0000
commit978b8f7f1d9acca15190b3e1c3c13206ae9ff3be (patch)
treef2459cf124e940897222cf3c2d1d840dc7a981a5 /bin/ed
parentecbdad392c9834599fff9cd2683900672354f4c0 (diff)
downloadFreeBSD-src-978b8f7f1d9acca15190b3e1c3c13206ae9ff3be.zip
FreeBSD-src-978b8f7f1d9acca15190b3e1c3c13206ae9ff3be.tar.gz
Sync program's usage() with manpage's SYNOPSIS.
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c
index 8e5f221..807a3cc 100644
--- a/bin/ed/main.c
+++ b/bin/ed/main.c
@@ -99,7 +99,7 @@ int lineno; /* script line number */
const char *prompt; /* command-line prompt */
const char *dps = "*"; /* default command-line prompt */
-const char usage[] = "usage: %s [-] [-sx] [-p string] [name]\n";
+const char usage[] = "usage: %s [-] [-sx] [-p string] [file]\n";
/* ed: line editor */
int
@@ -134,7 +134,7 @@ top:
break;
default:
- fprintf(stderr, usage, argv[0]);
+ fprintf(stderr, usage, red ? "red" : "ed");
exit(1);
}
argv += optind;
OpenPOWER on IntegriCloud