From unknown Wed Aug 20 01:20:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64326: Bug in rm command Resent-From: LitHack Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 28 Jun 2023 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64326 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 64326@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16879638114182 (code B ref -1); Wed, 28 Jun 2023 14:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2023 14:50:11 +0000 Received: from localhost ([127.0.0.1]:51406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEWUl-00015I-2g for submit@debbugs.gnu.org; Wed, 28 Jun 2023 10:50:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:55818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEUOV-0005fT-NA for submit@debbugs.gnu.org; Wed, 28 Jun 2023 08:35:36 -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 1qEUOV-00070X-9G for bug-coreutils@gnu.org; Wed, 28 Jun 2023 08:35:35 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEUOT-0001jW-Es for bug-coreutils@gnu.org; Wed, 28 Jun 2023 08:35:35 -0400 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b6985de215so61605791fa.2 for ; Wed, 28 Jun 2023 05:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687955731; x=1690547731; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=/jlYivHEJOprm1osIeMakGAc85MtqmnJK5evdz4b6QQ=; b=rsieF5mA5E1PpWIPl0Ad6vo3KNVA38PMgjq/JfQLK3QyjsU+9MaZVJAfpJlOtACe0M LS7IUA8CRY9+bcyyIf1GqWwzQUFrHi5PamEB4v4TiGThvzR7XRIJ4FVEK7dIft580Ic/ 9Qa4DjrgXciq+96kk8GIuMJkzXGa+9v0PYtxR/c0NqpD8XpQJR/+8vFCHfjXIEoeHoyl Oo0L2G182jFSk36b5HoiaEld9W5cZDLYOZskzwbgc8a28jXa7SoHhdzUo/g6gbn2W1p/ 22RPI/4G4xhkMh3XDyS/spcc/hpvIjAvP6qzhTe88K3wNSZ48nMHcPjW/F8mYDs/2oSL 9J2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687955731; x=1690547731; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/jlYivHEJOprm1osIeMakGAc85MtqmnJK5evdz4b6QQ=; b=P7OGjcKNhfRSoz26Jf7Q723UyasOqg5ThxhU1FOZ4+7pV4DG/eXKtemD0vqk/wW1a8 eNznU5VyDY+6MR1SbzgHoGtnAPM3NUQCpxRWPqlbaqee40KGunxRr7zUmMsBtZ54L0MF auwcAnXRFZyzyoxw0No3K5nZJuZFDthrTGWdklABThjwK1PD3T3QdPoktrT+mozI4Ant eLIWbSv8ZGGdm7So2SkgL6hAOvXH2eGyoWmNaza0y0uZqHNh6s+aO2fylwzni3F9Umb3 v0wZNvFxeyPr2YOeMynpahP8jWmzET1G+5mI23jqmPQh3+qs8243uJwLm774Zl0aRTc3 T+nA== X-Gm-Message-State: AC+VfDz3WgObmUE7r8dStgBCa2Tkg2Aeqagle8mwCfgBzRa/KO+RmhEZ aBG4+QinC85U8Bq7v0ILZo1s6K9oT1v4QrEDsLQEMJoG X-Google-Smtp-Source: ACHHUZ4EV3GRkaSv+KC/Rf9CqaHuVtz7pC9YbLo7t+K78aODSLHA9Ah1f9ui9SHFmOA9X7K4fnLXAITfcn1Oj/Qed2E= X-Received: by 2002:a2e:8443:0:b0:2b1:bb66:7b69 with SMTP id u3-20020a2e8443000000b002b1bb667b69mr20919686ljh.32.1687955730532; Wed, 28 Jun 2023 05:35:30 -0700 (PDT) MIME-Version: 1.0 From: LitHack Date: Wed, 28 Jun 2023 18:05:17 +0530 Message-ID: Content-Type: multipart/alternative; boundary="000000000000b70e8005ff2fd11a" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=lithack0@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Mailman-Approved-At: Wed, 28 Jun 2023 10:50:05 -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: -2.1 (--) --000000000000b70e8005ff2fd11a Content-Type: text/plain; charset="UTF-8" There is bug in rm command by which we can not delete a special file with dash(-) in front of them. Like rm -file, rm "-file" will not delete the file (-file) --000000000000b70e8005ff2fd11a Content-Type: text/html; charset="UTF-8"
There is bug in rm command by which we can not delete a special file with dash(-) in front of them.

Like rm -file, rm "-file" will not delete the file (-file)
--000000000000b70e8005ff2fd11a-- From unknown Wed Aug 20 01:20:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64326: Some more info about rm bug References: In-Reply-To: Resent-From: LitHack Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 28 Jun 2023 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64326 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 64326@debbugs.gnu.org Received: via spool by 64326-submit@debbugs.gnu.org id=B64326.16879664658923 (code B ref 64326); Wed, 28 Jun 2023 15:35:02 +0000 Received: (at 64326) by debbugs.gnu.org; 28 Jun 2023 15:34:25 +0000 Received: from localhost ([127.0.0.1]:51451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEXBY-0002Jr-9R for submit@debbugs.gnu.org; Wed, 28 Jun 2023 11:34:24 -0400 Received: from mail-lj1-f170.google.com ([209.85.208.170]:56598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEWhF-0001TE-67 for 64326@debbugs.gnu.org; Wed, 28 Jun 2023 11:03:06 -0400 Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2b6a1245542so57387581fa.1 for <64326@debbugs.gnu.org>; Wed, 28 Jun 2023 08:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687964579; x=1690556579; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=NatziZnpKXWIPBH8/Nj6h0sDFA8S9yu/KWm9RoSkkR4=; b=nKOzxkACECNDytXrPwUncUANWmc6gCQ2MaWYoao+renTaur3tTGutnrYqxYzSNkJLF X/fIwBivSRSoCsqgzrN+g3l4d9ulGFP7a7ROeqxLLbRmhOBFRLMMz6anL1HYc3WMjn4g 41lRwY/wCA/bYLcH9yzId/clZeg68s+WP7RS0W7ieKI2FHTkFwBlLK7VkFFTTJ2/5Z/i bIcmIFDCDy2W69rhQIo0xdDMzrGpkbFcZMbMwkrrK52PNicBugRGMidU4AxE8OQBAV5T 7qZfyGI/YqXXpq3Ga6cJlwWfrMi7x8zn5te8vfpxB05ryLjakznilo2iUWjqjqNBdwyw Z4Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687964579; x=1690556579; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NatziZnpKXWIPBH8/Nj6h0sDFA8S9yu/KWm9RoSkkR4=; b=DvLcwGU6CmcA80ByGur46sVcljA1pqAMTOU6e7aCTusm7xQB76YiQo1jr6vNTTjCCr 12Jo7l7AyUoX8Ulnp8KM9Cp3gV6T2U9UcFeW8+3UlhDgWT+qxd82g/XvxDVt33VKM9s1 69NDegMpPjSZdGCG23X5mKIcZ1RHdAHFYsSsOhaXYS8KdcF3TkOjohDCNjKlIudaKbOW 84VndK2bn7oo3U5EZOCsPaYrNh/Lt9PckZoc6CPf/MUcOrB5Is2ZvbrOQO8fDrLNgeq1 9xAnGCy4dg/zjiaIclWrCh507ww760UrDSnjacA5eyxazmM+wV2u+N1Xo0kmOkgt0ZeS 16lQ== X-Gm-Message-State: AC+VfDxoCZ/RA30cCKwxjkfOvilr8EYJleI/pYR7F96e1FVI/gzwUxgF hXutuS2u2PXa9zSY+PGCcCTGWU53Mx2fS6DqhViak3aP X-Google-Smtp-Source: ACHHUZ7736NOWoezpQIVg1XHBgQVBoNovmYlRXf5a1Eov1qQ2j+cdXLxMGT+7MIOCEy9A3FcX77asJgRxTG5rDXhzxY= X-Received: by 2002:a2e:9898:0:b0:2b4:6456:4553 with SMTP id b24-20020a2e9898000000b002b464564553mr21426002ljj.47.1687964578418; Wed, 28 Jun 2023 08:02:58 -0700 (PDT) MIME-Version: 1.0 From: LitHack Date: Wed, 28 Jun 2023 20:32:45 +0530 Message-ID: Content-Type: multipart/alternative; boundary="0000000000001713e505ff31e136" X-Spam-Score: 0.3 (/) X-Mailman-Approved-At: Wed, 28 Jun 2023 11:34:23 -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.7 (/) --0000000000001713e505ff31e136 Content-Type: text/plain; charset="UTF-8" Basically what it doing is that it doesn't recognise (-) this as a file name part even when using (\-). This bug will work on most of utilities like cat, cp etc Thanks and regards --0000000000001713e505ff31e136 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Basically what it doing is that it doesn't recognise = (-) this as a file name part even when using (\-). This bug will work on mo= st of utilities like cat, cp etc

Thanks and regards=C2=A0
--0000000000001713e505ff31e136-- From unknown Wed Aug 20 01:20:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64326: Some more info about rm bug Resent-From: Arsen =?UTF-8?Q?Arsenovi=C4=87?= Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 28 Jun 2023 15:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64326 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: LitHack Cc: 64326@debbugs.gnu.org X-Debbugs-Original-Cc: 64326@debbugs.gnu.org, bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168796705510004 (code B ref -1); Wed, 28 Jun 2023 15:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2023 15:44:15 +0000 Received: from localhost ([127.0.0.1]:51468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEXL4-0002bH-Tn for submit@debbugs.gnu.org; Wed, 28 Jun 2023 11:44:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:35706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEXL3-0002b7-7Q for submit@debbugs.gnu.org; Wed, 28 Jun 2023 11:44:13 -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 1qEXKw-0003vz-Eo for bug-coreutils@gnu.org; Wed, 28 Jun 2023 11:44:09 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qEXKu-0001Sn-2S for bug-coreutils@gnu.org; Wed, 28 Jun 2023 11:44:06 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4Qrm8Y1dkSz9sXk; Wed, 28 Jun 2023 17:43:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1687967037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DoDvQM9K1qeeR9lgD3ESXolv1vEedoR/NaRdefEHElk=; b=HdY+dDn6B8hCv9j2zwLvgwkobrV2lPkkocIgmZFi9NF6OKlzvD9RxT3JKE6yHh+ieznt+H IekdjLAWdcvA+HMwZGPGX7GPHVuQPGZm3VPKyAm2dZKuUi3A/NOuHMOuy2fSpFGejuLf7F 6Q+kdnqVfMBm/5tUTuH2u6B1/gJj1dzTO9Np6YIbglFwOf11+FFbjObMkG1VtdEeYbUE26 7XD98n04VJ3x7egaWX/Vu0atkX4cAJwbCQ/PEn4pR6lhbohQzff3yWZ0RLGj5atvUTC6uG OMvKJOz+e6LiyJlSeb8VyIP6ztvbAfvbqXLeUlo0Gzhj6SREuFfuYLcwA/1lEQ== References: From: Arsen =?UTF-8?Q?Arsenovi=C4=87?= Date: Wed, 28 Jun 2023 17:41:13 +0200 In-reply-to: Message-ID: <86pm5fzj5x.fsf@aarsen.me> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Rspamd-Queue-Id: 4Qrm8Y1dkSz9sXk Received-SPF: pass client-ip=80.241.56.152; envelope-from=arsen@aarsen.me; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) 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.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, LitHack writes: > Basically what it doing is that it doesn't recognise (-) this as a file > name part even when using (\-). This bug will work on most of utilities > like cat, cp etc This is simply how argument parsing and shell syntax work. 'rm \-abc' is equivalent to just 'rm -abc', which is parsed as 'rm -a -b -c'. To delete a file with a dash at the start of its name, use 'rm ./-file' and similar. Hope that helps, have a lovely day. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZJxVOl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTSi8A/RLUnhw23UZjUeDKAqKQgV2xsUVhKb6bjvhB oCJqgRalAP45wfUnPXQJgZeOsfklPS4KKxDSMMaYojirEI/YA5C5BA== =1kVd -----END PGP SIGNATURE----- --=-=-=-- From unknown Wed Aug 20 01:20:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64326: Some more info about rm bug Resent-From: Chris Elvidge Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 28 Jun 2023 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64326 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 64326@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168797361331588 (code B ref -1); Wed, 28 Jun 2023 17:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jun 2023 17:33:33 +0000 Received: from localhost ([127.0.0.1]:51547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZ2q-0008DP-R6 for submit@debbugs.gnu.org; Wed, 28 Jun 2023 13:33:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:45766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZ2n-0008DE-Ox for submit@debbugs.gnu.org; Wed, 28 Jun 2023 13:33:31 -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 1qEZ2h-0003vv-Ap for bug-coreutils@gnu.org; Wed, 28 Jun 2023 13:33:25 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEZ2f-0007C4-S0 for bug-coreutils@gnu.org; Wed, 28 Jun 2023 13:33:23 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3141316b253so73943f8f.3 for ; Wed, 28 Jun 2023 10:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687973600; x=1690565600; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject:from:to:cc :subject:date:message-id:reply-to; bh=+AdlnpKc4WTwCsmm12vyYDhfRg8vDu5CeqaESAszQ2Q=; b=ADZD3Rp/jZVlF5R5j0StgcF5GeoVLkHOMO+hVi4yv3HMl3XDzhJRp8CMw8lL6axyBt BymNQPFy3wI2sDrNNxiZMvCstMq5enrRdbIrs3HaRKFrH2tAWQV9xPfCeCHdgeD2uMyE M/WHGK5hAMorlTB70mlB7D32Gs2x0bdUJ4g3vw+v06efcQ9iwbZjtmqetKcO7B3JG7pJ Auk8+g7hbsSTotqqsOCzuIYBk+8n+Tbc5JVOvBkuCCIzxP8cNSpJTmNd7xg9pdraDDU7 r65jLADcIJjxi1vPkIo2ruQSprThTJO5d0o8n5Ej7UaJQT39t4loPhDATNYR6hzZl3up o+sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687973600; x=1690565600; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+AdlnpKc4WTwCsmm12vyYDhfRg8vDu5CeqaESAszQ2Q=; b=GjL9ssoPfgVB8qHctI/fIGkrgoufXaw9K9KxkZBHFm3Jzli28KRo60YQvOCsqkj3bx Zf1h/8DaFU7duVLakRZcxLpxyeXxJrNCAhiCjL71o2TdzlA1rgScaXcViKc6CXowLWmb fynjPzHnkqsP7B/fmBbHpVQ4NMi0vrKYToVznRcBs+mw8+1n1Wj6Pr2wORkcSSvP1xc+ b2b/yxmyhvP0gAVuou1skU7bxViTn2PVoyuqBf6F45mSG5WhMC/xv8JtZPdecdFD8ZOg A6hze8gPmhGfF8qhtWAbO2FO8t9NGQJW2DAYI90lifN//kNh0Tx3/4gUIgOKRHhmzDpM 16yg== X-Gm-Message-State: AC+VfDzTfNwEEluuQbtRFaNUmzccwaISVK+BA6QHPfdr9fhECJAwSSnH 9I+lOcUUJYxEZr/d2VbHKWoPiVrukoM= X-Google-Smtp-Source: ACHHUZ4XlctgEhoVDAdTrdTBw26iXRze3I1H1U9P2uqXRoZB650MJlK8qxHfY/h0BVb/PTiriNbBvw== X-Received: by 2002:adf:dc91:0:b0:313:e897:67ec with SMTP id r17-20020adfdc91000000b00313e89767ecmr9774371wrj.5.1687973599920; Wed, 28 Jun 2023 10:33:19 -0700 (PDT) Received: from [192.168.23.100] (92.40.171.90.threembb.co.uk. [92.40.171.90]) by smtp.gmail.com with ESMTPSA id da16-20020a056000197000b0031274a184d5sm13950510wrb.109.2023.06.28.10.33.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Jun 2023 10:33:19 -0700 (PDT) References: <86pm5fzj5x.fsf@aarsen.me> From: Chris Elvidge Message-ID: <5f118d81-987f-df2e-dc4f-0b53a7ae886d@gmail.com> Date: Wed, 28 Jun 2023 18:33:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Lightning/5.4 MIME-Version: 1.0 In-Reply-To: <86pm5fzj5x.fsf@aarsen.me> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=celvidge001@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.089, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Or rm -- -abc The "double-dash" signals "end of options" On 28/06/2023 16:41, Arsen =?UTF-8?Q?Arsenovi=C4=87?= via GNU coreutils Bug Reports wrote: > Hi, > > LitHack writes: > >> Basically what it doing is that it doesn't recognise (-) this as a file >> name part even wh [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (celvidge001[at]gmail.com) -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (celvidge001[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [92.40.171.90 listed in zen.spamhaus.org] -1.1 NICE_REPLY_A Looks like a legit reply (A) 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.3 (/) Or rm -- -abc The "double-dash" signals "end of options" On 28/06/2023 16:41, Arsen Arsenović via GNU coreutils Bug Reports wrote: > Hi, > > LitHack writes: > >> Basically what it doing is that it doesn't recognise (-) this as a file >> name part even when using (\-). This bug will work on most of utilities >> like cat, cp etc > > This is simply how argument parsing and shell syntax work. 'rm \-abc' > is equivalent to just 'rm -abc', which is parsed as 'rm -a -b -c'. To > delete a file with a dash at the start of its name, use 'rm ./-file' and > similar. > > Hope that helps, have a lovely day. > -- Chris Elvidge From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 28 14:23:09 2023 Received: (at control) by debbugs.gnu.org; 28 Jun 2023 18:23:09 +0000 Received: from localhost ([127.0.0.1]:51584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZoq-0001Aa-QB for submit@debbugs.gnu.org; Wed, 28 Jun 2023 14:23:09 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:56130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZon-00019p-Or for control@debbugs.gnu.org; Wed, 28 Jun 2023 14:23:07 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id C71B53C10C5E3 for ; Wed, 28 Jun 2023 11:22:59 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XUREfQ_Pmfle for ; Wed, 28 Jun 2023 11:22:59 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 7F5A03C21FA42 for ; Wed, 28 Jun 2023 11:22:59 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 7F5A03C21FA42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1687976579; bh=4zXXXMxILL6lq4RacvE9U2pI+yb3zIUTro3vULxs/yY=; h=Message-ID:Date:MIME-Version:To:From; b=kvg5rTrD+tdBLF1lD+WXYSe4yYriqDmZgJs3+CAD5AYUA5Yqp0n+3Ag4iOddPkdy3 rdFFs3CiHRjLFpHxbcDexaOQEdBPYbIKL3qd5nqbf6RFaudq7IRsQ2+Zj7wlA8pyfC bq0uLsZvLUdt6liZ9VZlS5ABZ0pSCf6My6+Iw0c8Bg5Dzt+0nr8Jx9p0WagD+SMBl5 TnXQTstSbjL1bvD3sKIjaJwWyHThW0zpxbJdmbzJaPc673hfjGNxV56XS1OdWhwyGQ clywHnn/6WfFYEh4YnvuS6cko9niVsHIku9U4VEBfyxFGR4gBKvnl4oXv3TLe1xlC+ tk51MS/2Tzh6Q== X-Virus-Scanned: amavisd-new 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]) (amavisd-new, port 10026) with ESMTP id OMnSjYDkHylz for ; Wed, 28 Jun 2023 11:22:59 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 61CC63C10C5E3 for ; Wed, 28 Jun 2023 11:22:59 -0700 (PDT) Message-ID: <309a5a12-1c20-98b4-429d-a09d3a6056e6@cs.ucla.edu> Date: Wed, 28 Jun 2023 11:22:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: control@debbugs.gnu.org From: Paul Eggert Subject: 64326 is not a bug Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 64326 notabug close 64326 From unknown Wed Aug 20 01:20:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64326: Some more info about rm bug Resent-From: Bernhard Voelker Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 28 Jun 2023 21:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64326 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: Chris Elvidge , 64326@debbugs.gnu.org Received: via spool by 64326-submit@debbugs.gnu.org id=B64326.16879861398179 (code B ref 64326); Wed, 28 Jun 2023 21:03:02 +0000 Received: (at 64326) by debbugs.gnu.org; 28 Jun 2023 21:02:19 +0000 Received: from localhost ([127.0.0.1]:51787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEcIt-00027k-Gv for submit@debbugs.gnu.org; Wed, 28 Jun 2023 17:02:19 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:42651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEcIl-000273-6j; Wed, 28 Jun 2023 17:02:15 -0400 Received: from [192.168.101.10] ([93.218.96.3]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MLRI3-1qX6ch2KKh-00IRRj; Wed, 28 Jun 2023 23:02:04 +0200 Message-ID: <564ae0b9-5117-e5df-5036-9d9e8151913b@bernhard-voelker.de> Date: Wed, 28 Jun 2023 23:02:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 References: <86pm5fzj5x.fsf@aarsen.me> <5f118d81-987f-df2e-dc4f-0b53a7ae886d@gmail.com> Content-Language: en-US From: Bernhard Voelker In-Reply-To: <5f118d81-987f-df2e-dc4f-0b53a7ae886d@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:AG25oRV4dQ298+byihtfn6N2ZehIUZkFrEIqRUPDPHpXbx4c6Wh vPqKWGBmiooC7qBdaGuHlb+ra/+zv6MNZojNLJbcBGk1tbvSKPkHVHkP220qX6/DNtblU1A nMRr7G0rrHxgBqXmDX//Dzbd2MFkynS/oPpMY0/vi4moBy2ENF5VMWNdU7Aqi5TJBNqw0nf dOTXUX1gMBJNs7PJBkNDw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:WBrbyE3Mb0I=;qHdYT6CRcPXs7aaF+8XMTyuHeef JNZLkWVrfhDsqkO1glGYPoSlHJo7pkek9ERb2CSumoTvkCcePOLMu5vrvnhejDX7ZVx37rZy0 +U1Q9juO+uHquxHsrqODpYIinGaE1Em0l4Vm+i3vEIlXkzFbYkPXomqoToXy3OdCoUIqfpeHz MlksXc89GqAeBVs6tv4O7J1nRa35ODWE+9vd7ul0MSigOUmT+r4cP5PGxeuwgumOO9VxctmyK DZf11/rAMkGNswj2hDPPWa3OzJxlfFI05ab9lHXTkp4/0MD6XugW6J8R5jZcnuWhyVbv2RMwr sHbe6pymPH80AAm8rzvb9HGanqy8CecTbZzKcY/3TPOemvBmHW/nBIK/ZHVHXGcgYCNtAmVZ1 WiHyXSHdSXDo6Hz5a46OfGqdBm6f2cA30hfmEnRiTlTOpDFMiqfBK5XyvsoVY583F7vxpibVL YKvD/tCwcdg1Mwm6AWdcSAYUAinNk3vqsEi2AuSpGKIWdtd+f+7E6SdLu52Kc/JiK+hFa8MQa hCDHsp1HPyrD7m0C16/1hVmHPYZs3qvV45ZOWDd+AClGwnV/feafPtwckMSM+4FT26DcxshVe BJeq/hQgp40M4BiqdFYufz0edJtu/Y3tMuEla8PWAJmO8Kx/RQTRSOCuaA2GFSP19ucrndPv1 ymWoAb3DnnvaWChLCblbpEscut/YrtEn4xSr1RnNZg== X-Spam-Score: -1.1 (-) 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.1 (--) tag 64326 notabug close 64326 stop On 6/28/23 19:33, Chris Elvidge wrote: > On 28/06/2023 16:41, Arsen Arsenović via GNU coreutils Bug Reports wrote: >> Hi, >> >> LitHack writes: >> >>> Basically what it doing is that it doesn't recognise (-) this as a file >>> name part even when using (\-). This bug will work on most of utilities >>> like cat, cp etc >> >> This is simply how argument parsing and shell syntax work. 'rm \-abc' >> is equivalent to just 'rm -abc', which is parsed as 'rm -a -b -c'. To >> delete a file with a dash at the start of its name, use 'rm ./-file' and >> similar. >> >> Hope that helps, have a lovely day. > Or rm -- -abc > > The "double-dash" signals "end of options" And finally: FAQ #11 - #13: https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#How-do-I-remove-files-that-start-with-a-dash_003f I'm hereby closing this issue as not-a-bug. Have a nice day, Berny