From unknown Wed Jun 18 23:10:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#47703 <47703@debbugs.gnu.org> To: bug#47703 <47703@debbugs.gnu.org> Subject: Status: Mention if ln -s needs -r, or ln -r needs -s Reply-To: bug#47703 <47703@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:10:17 +0000 retitle 47703 Mention if ln -s needs -r, or ln -r needs -s reassign 47703 coreutils submitter 47703 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 47703 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 11 01:42:48 2021 Received: (at submit) by debbugs.gnu.org; 11 Apr 2021 05:42:48 +0000 Received: from localhost ([127.0.0.1]:53830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVSrw-0007W7-3i for submit@debbugs.gnu.org; Sun, 11 Apr 2021 01:42:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:54606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVSrs-0007Vc-SE for submit@debbugs.gnu.org; Sun, 11 Apr 2021 01:42:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVSrs-0007eV-Eh for bug-coreutils@gnu.org; Sun, 11 Apr 2021 01:42:44 -0400 Received: from bird.elm.relay.mailchannels.net ([23.83.212.17]:63940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVSrq-0001Tm-57 for bug-coreutils@gnu.org; Sun, 11 Apr 2021 01:42:43 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C938C48254F for ; Sun, 11 Apr 2021 05:42:39 +0000 (UTC) Received: from pdx1-sub0-mail-a74.g.dreamhost.com (100-96-13-70.trex.outbound.svc.cluster.local [100.96.13.70]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A15324827A3 for ; Sun, 11 Apr 2021 05:42:37 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a74.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.13.70 (trex/6.1.1); Sun, 11 Apr 2021 05:42:39 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Tasty-Arithmetic: 44d2911d6ef5c935_1618119759692_3590493484 X-MC-Loop-Signature: 1618119759692:470717886 X-MC-Ingress-Time: 1618119759691 Received: from pdx1-sub0-mail-a74.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a74.g.dreamhost.com (Postfix) with ESMTP id 5DA5784C61 for ; Sat, 10 Apr 2021 22:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=BLmD72xNU2DgqbzDlFa/WKVEp48=; b=cjpwyddSRYyQdwvv K6M0S1jXmiUz7vDbPvE7de2wq+V98kn9UwcnkGz/TjPrbrOP9H911lDNlkHOoxe8 JX0CMYrwFDZqvzBZJyu8MXhPhWeAMwa+tP5IucfVOG9bYYTxKWLviLGRsqwl9IWy oJBgd6yN2Ga57Icpo4ny9OYTUq0= Received: from jidanni.org (114-41-20-171.dynamic-ip.hinet.net [114.41.20.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a74.g.dreamhost.com (Postfix) with ESMTPSA id 1E64E8306A for ; Sat, 10 Apr 2021 22:42:36 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a74 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-coreutils@gnu.org Subject: Mention if ln -s needs -r, or ln -r needs -s Date: Fri, 09 Apr 2021 19:46:48 +0800 Message-ID: <877dlb1xzr.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=23.83.212.17; envelope-from=jidanni@jidanni.org; helo=bird.elm.relay.mailchannels.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_24_48=1.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.9 (-) man ln says: -r, --relative create symbolic links relative to link location -s, --symbolic make symbolic links instead of hard links Does -s need -r, or -r need -s? Hard to tell from the man page. Had to find out the 'hard' way. Please mention the answer on the man page. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 11 10:21:29 2021 Received: (at 47703-done) by debbugs.gnu.org; 11 Apr 2021 14:21:29 +0000 Received: from localhost ([127.0.0.1]:55699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVaxt-00065y-Ae for submit@debbugs.gnu.org; Sun, 11 Apr 2021 10:21:29 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:34472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVaxq-00065h-RX for 47703-done@debbugs.gnu.org; Sun, 11 Apr 2021 10:21:27 -0400 Received: by mail-wr1-f53.google.com with SMTP id b9so10250078wrs.1 for <47703-done@debbugs.gnu.org>; Sun, 11 Apr 2021 07:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=OrU2bORGGIYzmrjZpAUgDsQa7c7m+9jPR21LfSx7ZMI=; b=HM8DF0/gqE7OKPjMqF5inFJmlE/Kis3YzZBDquqz182ylujAVJklxOB/8xbp2qKaBY K0saKmfb5prvqvKQ56hpXll1A/kMOXAPySTjDSdfJ4Y3iXSaQmoBo/TUMNc5QhfOTHQg rEC1uFFwBEphhahEdAjnRQK0nZ8/j8/r/0CXbJu2voK38t9+5K5X9ihPeEjtCdyI+oW8 KLSubQ9/PcutH2oz2ksF9nD5HqVluSGfpdYJjuXlDDDJbnQBjthyxD82fccWSDcRxAd7 CKOhwHhMA3yUomixBjBBHWl/2CTURB4lD+qJyv7xtKalFUMtlqpGmih9YnE4a1Pm/DlU //rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language; bh=OrU2bORGGIYzmrjZpAUgDsQa7c7m+9jPR21LfSx7ZMI=; b=g7PLCK345ZrpAUvUG70CjS6pi3IHtQEMI9mRU9rU2G6RXpbiuk6hLnM4Lbq+3lB4iu hK2tOwEWsAWyhasHL177yvGnL1QQxRnwf+8sY/I3tUrV2vf51Qj05R2Sl+yxGhdzUJGW X4BYYhFoOlRTJcy9P0X9q816GrhiKy1Z3/nM8+flcXm1jMMRAnjDPqvmJHWkdC/iWjrc /pJWLMuieg7wj5HBMb42dSGwHk2SmtkwN0xqpswtI0LboDWB131V+7XV5vparTkebL/5 UF+9mEXI5lMfk/r/tGG8uMHmghOoVmAdD+TUuJegb2arQbZLhtiWMZrfqgg7Df4VVl8z XG8A== X-Gm-Message-State: AOAM532qk7EuznFSwMCqwHtE6aXRDx11D9d1ouzvWnu7rjxRSzXhlIzo bIujmXvdYlHhLLkrdPXeEas/Ms/Iogs= X-Google-Smtp-Source: ABdhPJyev0M9KDBAf+i0utTi/LKgeBJaMLe1agm8Lb4cGjkRkuQJJgcUypVOJFvsVk18Af7Ahxs/tg== X-Received: by 2002:adf:cc8d:: with SMTP id p13mr27584414wrj.50.1618150880719; Sun, 11 Apr 2021 07:21:20 -0700 (PDT) Received: from localhost.localdomain (86-42-14-227-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.42.14.227]) by smtp.googlemail.com with UTF8SMTPSA id v7sm12073656wrs.2.2021.04.11.07.21.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Apr 2021 07:21:19 -0700 (PDT) Subject: Re: bug#47703: Mention if ln -s needs -r, or ln -r needs -s To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= , 47703-done@debbugs.gnu.org References: <877dlb1xzr.5.fsf@jidanni.org> From: =?UTF-8?Q?P=c3=a1draig_Brady?= Message-ID: Date: Sun, 11 Apr 2021 15:21:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 MIME-Version: 1.0 In-Reply-To: <877dlb1xzr.5.fsf@jidanni.org> Content-Type: multipart/mixed; boundary="------------CDA8DF8B79566FE22AC57950" Content-Language: en-US X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 47703-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) This is a multi-part message in MIME format. --------------CDA8DF8B79566FE22AC57950 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 09/04/2021 12:46, 積丹尼 Dan Jacobson wrote: > man ln says: > > -r, --relative > create symbolic links relative to link location > > -s, --symbolic > make symbolic links instead of hard links > > Does -s need -r, > or -r need -s? > > Hard to tell from the man page. > > Had to find out the 'hard' way. > > Please mention the answer on the man page. Fair point. Will address with the attached. Marking this as done. thanks, Pádraig --------------CDA8DF8B79566FE22AC57950 Content-Type: text/x-patch; charset=UTF-8; name="ln-clarify--relative.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ln-clarify--relative.patch" >From 572b74dd5f6d672eecd8b43e5eab443744fbc090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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 e53c0de6e..acc1841fa 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -10584,6 +10584,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 d0319ef4e..9974d9647 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.26.2 --------------CDA8DF8B79566FE22AC57950-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 29 22:53:11 2021 Received: (at submit) by debbugs.gnu.org; 30 Apr 2021 02:53:11 +0000 Received: from localhost ([127.0.0.1]:57178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcJHD-0005a7-HZ for submit@debbugs.gnu.org; Thu, 29 Apr 2021 22:53:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:43002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lcJH9-0005Zy-5P for submit@debbugs.gnu.org; Thu, 29 Apr 2021 22:53:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcJH8-0002jA-TX for bug-coreutils@gnu.org; Thu, 29 Apr 2021 22:53:06 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:42682 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcJH6-0006xs-RW for bug-coreutils@gnu.org; Thu, 29 Apr 2021 22:53:06 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 13U2qUoA032244; Thu, 29 Apr 2021 19:52:32 -0700 Message-ID: <608B70D5.9000507@tlinx.org> Date: Thu, 29 Apr 2021 19:52:05 -0700 From: L A Walsh User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Coreutils , =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNv?= =?UTF-8?B?YnNvbg==?= , =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= Subject: Re: Same category as "ln " (was: bug#47703: Mention if ln -s needs -r, or ln -r needs -s) References: <877dlb1xzr.5.fsf@jidanni.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@tlinx.org; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) On 2021/04/11 07:21, P=C3=A1draig Brady wrote: > On 09/04/2021 12:46, =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson wrote: >> man ln says: >> -r, --relative >> create symbolic links relative to link location >> -s, --symbolic >> make symbolic links instead of hard links >> Hard to tell from the man page. --- Seems like another related example ignoring what the user wants and issuing an error for an inexact usage. If you used "-r" by itself, or if you try linking a directory, either without "-s", you get an error message, when it would be more helpful to assume "-s" and give a diagnostic if "interactive" (assumption= being, that if it was in a script, it was obviously intended that way, as any other way generates an error). > Fair point. > thanks, P=C3=A1draig From unknown Wed Jun 18 23:10:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 May 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator