]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(readlink invocation): Document new
authorJim Meyering <jim@meyering.net>
Tue, 6 Jul 2004 16:15:45 +0000 (16:15 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 6 Jul 2004 16:15:45 +0000 (16:15 +0000)
"readlink -f" behaviour and new canonicalize options, -e and -m.

doc/coreutils.texi

index 1423b4c446dbe4f16e1b48cf8c1b123097945185..007c8b45e8bbc5f10dad3964265dd88f7d63f24f 100644 (file)
@@ -7762,9 +7762,7 @@ of a symbolic link, it produces no output and exits with a nonzero exit code.
 
 @command{readlink} outputs the absolute name of the given file which contains
 no @file{.}, @file{..} components nor any repeated separators
-(@file{/}) nor symbolic links.
-If the file is missing or unavailable,
-it produces no output and exits with a nonzero exit code.
+(@file{/}) or symbolic links.
 
 @end table
 
@@ -7783,6 +7781,24 @@ The program accepts the following options.  Also see @ref{Common options}.
 @opindex -f
 @opindex --canonicalize
 Activate canonicalize mode.
+If any path component except the last one is missing or unavailable,
+@command{readlink} produces no output and exits with a nonzero exit code.
+
+@item -e
+@itemx --canonicalize-existing
+@opindex -e
+@opindex --canonicalize-existing
+Activate canonicalize mode.
+If any path component is missing or unavailable, @command{readlink} produces
+no output and exits with a nonzero exit code.
+
+@item -m
+@itemx --canonicalize-missing
+@opindex -m
+@opindex --canonicalize-missing
+Activate canonicalize mode.
+If any path component is missing or unavailable, @command{readlink} treats it
+as a directory.
 
 @item -n
 @itemx --no-newline