summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-12-02 01:04:13 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-12-02 01:04:13 +0000
commitd543e8233fe6d59782db1420232a906fc75b8d56 (patch)
tree8da56a9068c55de365a07a5a8faa626e3deb6f92 /usr.bin
parent56ba05184793afd6bfbc2632ed83915cbe8e82b4 (diff)
Clarify man page and usage string to say 'pathname' and not 'string'
or 'dir'. Closes PR 2216; s AT msmith.net
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dirname/dirname.16
-rw-r--r--usr.bin/dirname/dirname.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/dirname/dirname.1 b/usr.bin/dirname/dirname.1
index bfa4ff2281a..6f6a93ae83f 100644
--- a/usr.bin/dirname/dirname.1
+++ b/usr.bin/dirname/dirname.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dirname.1,v 1.1 2001/07/05 22:06:25 pjanzen Exp $
+.\" $OpenBSD: dirname.1,v 1.2 2001/12/02 01:04:12 millert Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -44,14 +44,14 @@
.Nd return directory portion of pathname
.Sh SYNOPSIS
.Nm dirname
-.Ar string
+.Ar pathname
.Sh DESCRIPTION
.Nm
deletes the filename portion, beginning
with the last slash
.Pq Sq \&/
character to the end of
-.Ar string ,
+.Ar pathname ,
and writes the result to the standard output.
.Pp
The
diff --git a/usr.bin/dirname/dirname.c b/usr.bin/dirname/dirname.c
index 25741892bc4..28a186b5464 100644
--- a/usr.bin/dirname/dirname.c
+++ b/usr.bin/dirname/dirname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirname.c,v 1.5 2001/07/05 22:12:09 pjanzen Exp $ */
+/* $OpenBSD: dirname.c,v 1.6 2001/12/02 01:04:12 millert Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: dirname.c,v 1.5 2001/07/05 22:12:09 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: dirname.c,v 1.6 2001/12/02 01:04:12 millert Exp $";
#endif /* not lint */
#include <err.h>
@@ -47,7 +47,7 @@ main(argc, argv)
setlocale(LC_ALL, "");
if (argc != 2) {
- (void)fprintf(stderr, "Usage: %s dirname\n", __progname);
+ (void)fprintf(stderr, "Usage: %s pathname\n", __progname);
exit(1);
}