According to Emmanuel Lacour on 2/12/2010 9:05 AM:
> but documentation say:
> 
> dirname - strip non-directory suffix from file name

Thanks for the report.  Both the man page and the texinfo could use the
improvement.  I'm installing this:

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
From ad205b9a9b1c77ac83f3418a8063a5086abd375b Mon Sep 17 00:00:00 2001
From: Eric Blake <[email protected]>
Date: Mon, 15 Feb 2010 06:45:31 -0700
Subject: [PATCH] dirname: improve man page description

* doc/coreutils.texi (dirname invocation): Properly cover behavior
on directory.
* man/dirname.x: Likewise.
* THANKS: Update.
Reported by Emmanuel Lacour.
---
 doc/coreutils.texi |   10 +++++-----
 man/dirname.x      |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index e3e95f5..94c493a 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -53,7 +53,7 @@
 * df: (coreutils)df invocation.                 Report file system disk usage.
 * dir: (coreutils)dir invocation.               List directories briefly.
 * dircolors: (coreutils)dircolors invocation.   Color setup for ls.
-* dirname: (coreutils)dirname invocation.       Strip non-directory suffix.
+* dirname: (coreutils)dirname invocation.       Strip last file component.
 * du: (coreutils)du invocation.                 Report on disk usage.
 * echo: (coreutils)echo invocation.             Print a line of text.
 * env: (coreutils)env invocation.               Modify the environment.
@@ -377,7 +377,7 @@ Top
 File name manipulation

 * basename invocation::          Strip directory and suffix from a file name
-* dirname invocation::           Strip non-directory suffix from a file name
+* dirname invocation::           Strip last file name component
 * pathchk invocation::           Check file name validity and portability
 * mktemp invocation::            Create temporary file or directory

@@ -11902,7 +11902,7 @@ File name manipulation

 @menu
 * basename invocation::         Strip directory and suffix from a file name.
-* dirname invocation::          Strip non-directory suffix from a file name.
+* dirname invocation::          Strip last file name component.
 * pathchk invocation::          Check file name validity and portability.
 * mktemp invocation::           Create temporary file or directory.
 @end menu
@@ -11963,7 +11963,7 @@ basename invocation


 @node dirname invocation
-...@section @command{dirname}: Strip non-directory suffix from a file name
+...@section @command{dirname}: Strip last file name component

 @pindex dirname
 @cindex directory components, printing
@@ -11971,7 +11971,7 @@ dirname invocation
 @cindex non-directory suffix, stripping

 @command{dirname} prints all but the final slash-delimited component of
-a string (presumably a file name).  Synopsis:
+a string (presumably a file name, but also works on directories).  Synopsis:

 @example
 dirname @var{name}
diff --git a/man/dirname.x b/man/dirname.x
index 2cfa08a..09c46e4 100644
--- a/man/dirname.x
+++ b/man/dirname.x
@@ -1,5 +1,5 @@
 [NAME]
-dirname \- strip non-directory suffix from file name
+dirname \- strip last component from file name
 [DESCRIPTION]
 .\" Add any additional description here
 [SEE ALSO]
-- 
1.6.6.1

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to