]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: note the relationship between realpath and readlink
authorPádraig Brady <P@draigBrady.com>
Thu, 9 Feb 2017 04:45:32 +0000 (20:45 -0800)
committerPádraig Brady <P@draigBrady.com>
Fri, 10 Feb 2017 05:52:23 +0000 (21:52 -0800)
* doc/coreutils.texi (realpath invocation): Mention that realpath
is the preferred command for canonicalization.
(readlink invocation): Likewise.
* man/readlink.x: Likewise.

doc/coreutils.texi
man/readlink.x

index 629136b0102053adf549ccb6abe65c69fb98576c..3eac96b7dff29a40b25bbf01e344349d68752c07 100644 (file)
@@ -10260,7 +10260,8 @@ of a symbolic link, it produces no output and exits with a nonzero exit code.
 
 @command{readlink} outputs the absolute name of the given files which contain
 no @file{.}, @file{..} components nor any repeated separators
-(@file{/}) or symbolic links.
+(@file{/}) or symbolic links.  Note the @command{realpath} command is the
+preferred command to use for canonicalization.  @xref{realpath invocation}
 
 @end table
 
@@ -13685,6 +13686,11 @@ all but the last component of the specified files must exist.  Synopsis:
 realpath [@var{option}]@dots{} @var{file}@dots{}
 @end example
 
+The file name canonicalization functionality overlaps with that of the
+@command{readlink} command.  This is the preferred command for
+canonicalization as it's a more suitable and standard name.  In addition
+this command supports relative file name processing functionality.
+
 The program accepts the following options.  Also see @ref{Common options}.
 
 @table @samp
index 6b28bca4732105d5d2c860904953a8bdc51ad9f6..3141cd2537274f74729b6ffb1dc6edfd8b3a18ea 100644 (file)
@@ -2,5 +2,7 @@
 readlink \- print resolved symbolic links or canonical file names
 [DESCRIPTION]
 .\" Add any additional description here
+Note realpath(1) is the preferred command to use
+for canonicalization functionality.
 [SEE ALSO]
 readlink(2), realpath(1), realpath(3)