summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2010-02-15 06:45:31 -0700
committerEric Blake <ebb9@byu.net>2010-02-15 06:56:07 -0700
commitd4de2dc83ad76f0dbce67aa15b37dbedbfd0e6de (patch)
tree630a0fbfd28147737a8c6866929cbd635788b8f1 /doc
parent45b46f4951758e6d3564537bbc8535cf76e9114a (diff)
downloadcoreutils-d4de2dc83ad76f0dbce67aa15b37dbedbfd0e6de.tar.xz
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index e3e95f5b6..fcee33618 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 name 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 @@ Redirection
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 @@ This section describes commands that manipulate file names.
@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 include/stdio.h .h
@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 @@ basename include/stdio.h .h
@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}