From unknown Thu Aug 14 22:18:25 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#16321 <16321@debbugs.gnu.org> To: bug#16321 <16321@debbugs.gnu.org> Subject: Status: [cp] Feature request: create relative symlinks with "cp -r -s" like "ln -r" Reply-To: bug#16321 <16321@debbugs.gnu.org> Date: Fri, 15 Aug 2025 05:18:25 +0000 retitle 16321 [cp] Feature request: create relative symlinks with "cp -r -s= " like "ln -r" reassign 16321 coreutils submitter 16321 Kai Herlemann severity 16321 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 01 18:56:10 2014 Received: (at submit) by debbugs.gnu.org; 1 Jan 2014 23:56:10 +0000 Received: from localhost ([127.0.0.1]:56775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VyVdx-00042I-3Y for submit@debbugs.gnu.org; Wed, 01 Jan 2014 18:56:09 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51716) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VySzG-0007tE-QB for submit@debbugs.gnu.org; Wed, 01 Jan 2014 16:05:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VySzB-0002yw-0l for submit@debbugs.gnu.org; Wed, 01 Jan 2014 16:05:58 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VySzA-0002yo-Tl for submit@debbugs.gnu.org; Wed, 01 Jan 2014 16:05:52 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VySz5-0000Q3-FA for bug-coreutils@gnu.org; Wed, 01 Jan 2014 16:05:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VySz0-0002x5-40 for bug-coreutils@gnu.org; Wed, 01 Jan 2014 16:05:47 -0500 Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:37955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VySyz-0002wz-Sd for bug-coreutils@gnu.org; Wed, 01 Jan 2014 16:05:42 -0500 Received: by mail-ea0-f178.google.com with SMTP id d10so5947036eaj.37 for ; Wed, 01 Jan 2014 13:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=1Vb0wugiU5U8/KDZkX8zSaghX5rGUYigdRvucCPSYg0=; b=Xv3ss+Tq8xxaIu8SVqjjZQ0asAHsjCyThs5t+f0RIi0MMsUb39NiLkq0MjU5tRtptM +qAK8MlSdf5AENCfwRNq1QcPX12nRNdInaCp5+MqHbg1CalzhO2iUsTx/qXYRaKFPGky HCAYdTA3+WcP/4Zelkw9KoXEkQETaFFghYB4FhcJpaxD1i6ZiPWyLLA56Kz7Jq3fpVoi sw35OtTcVCAY0ScQ6bmnDB73o3mf6mDDTdxL0Ma6HyZ/xkCV93FvgPYizFHq8mC1xoo2 Hrp8Z2i+t3KD0wYIkGzJKiaMIHTL7lilvwmFm6+0GZNzse1MxbeczITV2H3FVyIWEJfF OW6A== X-Received: by 10.15.86.75 with SMTP id h51mr12416424eez.44.1388610341136; Wed, 01 Jan 2014 13:05:41 -0800 (PST) Received: from [192.168.1.3] ([2.161.115.29]) by mx.google.com with ESMTPSA id 44sm130213751eek.5.2014.01.01.13.05.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Jan 2014 13:05:39 -0800 (PST) Message-ID: <52C48319.5040005@googlemail.com> Date: Wed, 01 Jan 2014 22:05:29 +0100 From: Kai Herlemann User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: [cp] Feature request: create relative symlinks with "cp -r -s" like "ln -r" Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 01 Jan 2014 18:56:07 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.0 (----) Hello, at first, there's a possibility to create relative symlinks with "ln -s -r". Secondly, "cp -r -s" creates only symlinks instead of copying them. I'd like to request that "cp -r -s" gets also that possibility to create relative symlinks like "ln -s -r". That may be very good if you want to 1) copy many different files to a portable storage device like an memory stick, 2) create two different file structures (in my case: sort after the source of music and after the singers) and don't want to copying them two at once. In cases like that, the absolute file path isn't the same, and therefore, only a relative symlink will work. Thanks, and happy new year! Kai