[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [dirname] fix documentation when using on a full directory path
From: |
Jim Meyering |
Subject: |
Re: [dirname] fix documentation when using on a full directory path |
Date: |
Mon, 15 Feb 2010 14:52:13 +0100 |
Eric Blake wrote:
> 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:
Thank you!
one suggestion:
...
> 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.
s/file/file name/
> * 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
...