[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
user/2216: dirname doesn't say what it means
- To: gnats@openbsd.org
- Subject: user/2216: dirname doesn't say what it means
- From: s@msmith.net
- Date: Wed, 28 Nov 2001 22:47:38 GMT
- Resent-Date: Wed, 28 Nov 2001 16:40:02 -0700 (MST)
- Resent-From: gnats@cvs.openbsd.org (GNATS Management)
- Resent-Message-Id: <200111282340.fASNe2Jt006161@cvs.openbsd.org>
- Resent-Reply-To: gnats@cvs.openbsd.org, s@msmith.net
- Resent-To: bugs@cvs.openbsd.org
>Number: 2216
>Category: user
>Synopsis: dirname doesn't say what it means
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Nov 28 16:40:01 MST 2001
>Last-Modified:
>Originator: Sam
>Organization:
net
>Release: -current
>Environment:
System : OpenBSD 3.0
Architecture: OpenBSD.i386
Machine : i386
>Description:
`dirname ` says that it expects a dirname, the docs talk about
wanting a string with a filename portion.
What they really seem to want is a pathname .
>How-To-Repeat:
>Fix:
patch:
Index: usr.bin/dirname/dirname.1
===================================================================
RCS file: /cvs/src/usr.bin/dirname/dirname.1,v
retrieving revision 1.1
diff -u -r1.1 dirname.1
--- usr.bin/dirname/dirname.1 2001/07/05 22:06:25 1.1
+++ usr.bin/dirname/dirname.1 2001/11/28 22:15:47
@@ -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
Index: usr.bin/dirname/dirname.c
===================================================================
RCS file: /cvs/src/usr.bin/dirname/dirname.c,v
retrieving revision 1.5
diff -u -r1.5 dirname.c
--- usr.bin/dirname/dirname.c 2001/07/05 22:12:09 1.5
+++ usr.bin/dirname/dirname.c 2001/11/28 22:15:47
@@ -47,7 +47,7 @@
setlocale(LC_ALL, "");
if (argc != 2) {
- (void)fprintf(stderr, "Usage: %s dirname\n", __progname);
+ (void)fprintf(stderr, "Usage: %s pathname\n", __progname);
exit(1);
}
--fASLuPvJ010875.1006984585/localhost.my.domain--
>Audit-Trail:
>Unformatted: