From unknown Sat Jun 21 17:35:23 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#78853 <78853@debbugs.gnu.org> To: bug#78853 <78853@debbugs.gnu.org> Subject: Status: [Bug]: Unexpected Behaviour with the `-r` (relative) `ln` - Parameter Reply-To: bug#78853 <78853@debbugs.gnu.org> Date: Sun, 22 Jun 2025 00:35:23 +0000 retitle 78853 [Bug]: Unexpected Behaviour with the `-r` (relative) `ln` - P= arameter reassign 78853 coreutils submitter 78853 "NA0341-Services (dev-account)" severity 78853 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 21 03:26:25 2025 Received: (at submit) by debbugs.gnu.org; 21 Jun 2025 07:26:25 +0000 Received: from localhost ([127.0.0.1]:60634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uSscI-00077y-JD for submit@debbugs.gnu.org; Sat, 21 Jun 2025 03:26:25 -0400 Received: from lists.gnu.org ([2001:470:142::17]:34606) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uSip8-0001P9-P0 for submit@debbugs.gnu.org; Fri, 20 Jun 2025 16:58:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uSip1-0000yb-Pd for bug-coreutils@gnu.org; Fri, 20 Jun 2025 16:58:51 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uSioz-00082J-Fy for bug-coreutils@gnu.org; Fri, 20 Jun 2025 16:58:51 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F1679240027 for ; Fri, 20 Jun 2025 22:58:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=1984.ea087b; t=1750453123; bh=+zHl3rzfHJOf7gLWpC1QTAU/2qjXoOdjI6vmykBVNLw=; h=Content-Type:Message-Id:From:To:Subject:Date:MIME-Version:From; b=IKKup2j7fvZ/xlLVHVtweLYbXcTx/Eq15fxvrBPdg/ZRaYaJGgmBbKXAOYYspbXdt zsVm4vh2MtgMwaCOR4hFAmTsaOYazP38xhq+mNFp7pNuqo5f3IX3v08AE1W1e+Tk2n KL0No3Wrm2u5Gt4V5K33PRSlhzMTO+eVNR7LkpGvVTa/uRVj5AJig6kA8JGdryduvp kTopRQTLnnxpUQW/lAp7DFoculuFdByRicu2FSop1hwbcspec1MFNF1BJv0DShPvu5 8mDzvEqMxFk3IzyQVWQS3VKmQaRat1hT1PU6jJ2vPSHEWcTV5d7Y1eJ/UR9s+psjpI CLu2snSx/GtD7bNfoU6XCAiN/YcxKHe21vXOmW9im56IMvvs6XxLlaVQEBJ3xEb7Xx 7XWchFlqbWVbCND+eC8iENByienTguspZoRzasagzbcKtviqQhDO6qirp6QW4NIPRH n6+gLBZdzkZVvjZ79YZ/JzXCcsQfTVrE6yCA4W3ZjwcxrDSoZ+6 Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4bP8w32ZLNz9rxB for ; Fri, 20 Jun 2025 22:58:43 +0200 (CEST) Content-Type: multipart/alternative; boundary="----sinikael-?=_1-17504531229590.42975748198524155" Message-Id: <1750451844105.2310158156.2982150388@posteo.net> From: "NA0341-Services (dev-account)" To: bug-coreutils@gnu.org Subject: [Bug]: Unexpected Behaviour with the `-r` (relative) `ln` - Parameter Date: Fri, 20 Jun 2025 20:58:42 +0000 MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.65; envelope-from=na0341-dev@posteo.org; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 21 Jun 2025 03:26:17 -0400 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.0 (/) ------sinikael-?=_1-17504531229590.42975748198524155 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Dear GNU Coreutils Maintainers Today I was trying to create a Relative Symbolic Link to ~/.face (which itself is a Symlink) named ~/.icon with the following Command: $ ln -sir ~/.face ~/.icon But ln linked ~/.icon to the TARGET ~/.face was linking to, instead (it followed or dereferenced ~/.face). As if I had used the -L, --logical (dereference TARGETs that are symbolic links). I confirmed this behaviour with ZSH (zsh 5.9 (x86_64-pc-linux-gnu)), bash (5.2.37(1)-release (x86_64-pc-linux-gnu)) and sh (sh-5.2) on Manjaro Linux with the Linux 6.1.138-1-MANJARO Kernel and GNOME on Wayland version 48. In a conversation with the Claude 3 Haiku AI I confirmed that this is very likely to be a bug ~ since `ln` should only dereference the TARGET when the -L Option is given. Thank You for Your Time ~ and I'll wait for your Response Greetings from Erfurt in Thuringia/Germany Bela. Kroll (NA0341) -- Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com ------sinikael-?=_1-17504531229590.42975748198524155 Content-Type: text/html; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Dear GNU Coreutils Maintainers


Today I was trying to create a Relative Symbolic  Link to ~/.face (which itself is a Symlink)  named ~/.icon with the following Command:

$ ln -sir ~/.face ~/.icon

But ln linked ~/.icon to the TARGET ~/.face was linking to, instead (it followed or dereferenced ~/.face).

As if I had used the -L, --logical (dereference TARGETs that are symbolic links).

I confirmed this behaviour with ZSH (zsh 5.9 (x86_64-pc-linux-gnu)), bash (5.2.37(1)-release (x86_64-pc-linux-gnu)) and sh (sh-5.2) on Manjaro Linux with the Linux 6.1.138-1-MANJARO Kernel and GNOME on Wayland version 48.

In a conversation with the Claude 3 Haiku AI I confirmed that this is very likely to be a bug ~ since `ln` should only dereference the TARGET when the -L Option is given.



Thank You for Your Time ~ and I'll wait for your Response


Greetings from Erfurt in Thuringia/Germany


Bela. Kroll (NA0341)

-- 
Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com
------sinikael-?=_1-17504531229590.42975748198524155-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 21 03:55:19 2025 Received: (at 78853) by debbugs.gnu.org; 21 Jun 2025 07:55:19 +0000 Received: from localhost ([127.0.0.1]:33033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uSt4J-000149-Ap for submit@debbugs.gnu.org; Sat, 21 Jun 2025 03:55:19 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:49264) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uSt4G-0000zn-QO for 78853@debbugs.gnu.org; Sat, 21 Jun 2025 03:55:17 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 5C02E3C00D40B; Sat, 21 Jun 2025 00:55:10 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id bsmua3oHdpPn; Sat, 21 Jun 2025 00:55:10 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 34A5B3C00D40D; Sat, 21 Jun 2025 00:55:10 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 34A5B3C00D40D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1750492510; bh=5XpEpl4RMbccV10ntsRUNcshYsjfBt62x5wzEN+fD+M=; h=Message-ID:Date:MIME-Version:To:From; b=Oy4b0JHg4UU1q8UvQo9UtBbOYMRExNMaqA9NIwTicUpkCBkBuV0D4ARf1K4TSl8OK X6dcVFEZ/O7O5aLLg39XeXElSwVLZMi7us5dp6dlmCDiwt2KErqOO2tQ80jpnplyyo M7wKBJxROBEORPQ6XJ72Bctlywn1dXHvx3uoAwOsdYPJiI5ekqT9O2sxfA3n71p2+Z qwzOlDrQKfWe/G1gUbeNwW55E7VBEF/dIkQ5xx+dogmgGG4+3Ax9tuwNMZYjmdzRft o+8ovC6rGR+f7H3hOY2KGn8eyrd+iF6KfkZZ5XIGj9Q/ljwaPwnq2XeJcbjN6kHYCE h7asHYvdulGLg== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id jPikuwJN5NRy; Sat, 21 Jun 2025 00:55:10 -0700 (PDT) Received: from penguin.cs.ucla.edu (47-147-225-199.fdr01.snmn.ca.ip.frontiernet.net [47.147.225.199]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 19A193C00D40B; Sat, 21 Jun 2025 00:55:10 -0700 (PDT) Message-ID: Date: Sat, 21 Jun 2025 00:55:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78853: [Bug]: Unexpected Behaviour with the `-r` (relative) `ln` - Parameter To: "NA0341-Services (dev-account)" , 78853@debbugs.gnu.org References: <1750451844105.2310158156.2982150388@posteo.net> Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <1750451844105.2310158156.2982150388@posteo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78853 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.0 (-) On 2025-06-20 13:58, NA0341-Services (dev-account) wrote: > > > In a conversation with the Claude 3 Haiku AI I confirmed that this is > very likely to be a bug ~ since `ln` should only dereference the TARGET > when the -L Option is given. The documentation for 'ln -r' says: Relative symbolic links are generated based on their canonicalized containing directory, and canonicalized targets. I.e., all symbolic links in these file names will be resolved. So it appears ln is behaving as documented. The documentation goes on to say how you can get finer-grained control.