On Friday 24 of July 2009 09:35:06 Jim Meyering wrote:
> From 644ffc5886b0a88bbd2dad7da72e75c876acaec4 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <[email protected]>
> Date: Fri, 24 Jul 2009 09:33:23 +0200
> Subject: [PATCH] readlink: improve one-line summary: prints canonical file
> names, too
>
> * src/readlink.c (usage): Adjust one-line summary.
> * man/readlink.x: Likewise.
> Suggested by Kamil Dudka.
> ---
>  man/readlink.x |    2 +-
>  src/readlink.c |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/man/readlink.x b/man/readlink.x
> index c1d6c5c..79ba758 100644
> --- a/man/readlink.x
> +++ b/man/readlink.x
> @@ -1,5 +1,5 @@
>  [NAME]
> -readlink \- display value of a symbolic link
> +readlink \- print value of a symbolic link or canonical file name
>  [DESCRIPTION]
>  .\" Add any additional description here
>  [SEE ALSO]
> diff --git a/src/readlink.c b/src/readlink.c
> index 2ea30fa..444a02a 100644
> --- a/src/readlink.c
> +++ b/src/readlink.c
> @@ -61,7 +61,7 @@ usage (int status)
>    else
>      {
>        printf (_("Usage: %s [OPTION]... FILE\n"), program_name);
> -      fputs (_("Display value of a symbolic link on standard
> output.\n\n"), +      fputs (_("Print value of a symbolic link or canonical
> file name\n\n"), stdout);
>        fputs (_("\
>    -f, --canonicalize            canonicalize by following every symlink
> in\n\ --
> 1.6.4.rc2.182.g24de1

Looks good. What about updating info documentation, too? Incremental patch 
attached.

Kamil
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 61361ab..f5582e5 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -322,7 +322,7 @@ Special file types
 * mkdir invocation::            Make directories
 * mkfifo invocation::           Make FIFOs (named pipes)
 * mknod invocation::            Make block or character special files
-* readlink invocation::         Print the referent of a symbolic link
+* readlink invocation::         Print value of a symlink or canonical file name
 * rmdir invocation::            Remove empty directories
 * unlink invocation::           Remove files via unlink syscall
 
@@ -8683,7 +8683,7 @@ Besides directories, other special file types include named pipes
 * mkdir invocation::            Make directories.
 * mkfifo invocation::           Make FIFOs (named pipes).
 * mknod invocation::            Make block or character special files.
-* readlink invocation::         Print the referent of a symbolic link.
+* readlink invocation::         Print value of a symlink or canonical file name.
 * rmdir invocation::            Remove empty directories.
 * unlink invocation::           Remove files via the unlink syscall
 @end menu
@@ -9128,10 +9128,11 @@ Set the default SELinux security context to be used for created files.
 
 
 @node readlink invocation
-...@section @command{readlink}: Print the referent of a symbolic link
+...@section @command{readlink}: Print value of a symlink or canonical file name
 
 @pindex readlink
 @cindex displaying value of a symbolic link
+...@cindex canonical file name
 
 @command{readlink} may work in one of two supported modes:
 
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to