From 34a48bf0f0552aaed21a7dba4a5488946a978317 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Sun, 11 Apr 2021 15:17:02 +0100 Subject: [PATCH] doc: clarify that ln --relative requires --symbolic to be specified * doc/coreutils.texi (ln invocation): State --symbolic is required. * src/ln.c (usage): Explicitly state -s is not implied. Fixes https://bugs.gnu.org/47703 --- doc/coreutils.texi | 1 + src/ln.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index cd10b0d4d2..3e3aedb0f9 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -10589,6 +10589,7 @@ link will be the same as if a hard link had been created. @opindex -r @opindex --relative Make symbolic links relative to the link location. +This option is only valid with the @option{--symbolic} option. Example: diff --git a/src/ln.c b/src/ln.c index e6abd2244a..760bab25a6 100644 --- a/src/ln.c +++ b/src/ln.c @@ -447,7 +447,7 @@ interpreted in relation to its parent directory.\n\ -n, --no-dereference treat LINK_NAME as a normal file if\n\ it is a symbolic link to a directory\n\ -P, --physical make hard links directly to symbolic links\n\ - -r, --relative create symbolic links relative to link location\n\ + -r, --relative with -s, create links relative to link location\n\ -s, --symbolic make symbolic links instead of hard links\n\ "), stdout); fputs (_("\ -- 2.47.2