From unknown Sat Jun 21 03:28:52 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#76920 <76920@debbugs.gnu.org> To: bug#76920 <76920@debbugs.gnu.org> Subject: Status: dired with unexpected character in filename: cannot delete file Reply-To: bug#76920 <76920@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:28:52 +0000 retitle 76920 dired with unexpected character in filename: cannot delete fi= le reassign 76920 emacs submitter 76920 "Windl, Ulrich" severity 76920 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 10 11:26:48 2025 Received: (at submit) by debbugs.gnu.org; 10 Mar 2025 15:26:48 +0000 Received: from localhost ([127.0.0.1]:39249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1trf1j-0003eU-E0 for submit@debbugs.gnu.org; Mon, 10 Mar 2025 11:26:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:49422) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1trdRu-0006ny-6K for submit@debbugs.gnu.org; Mon, 10 Mar 2025 09:45:42 -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 1trdRE-00041Y-Dw for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2025 09:45:00 -0400 Received: from mail01.ukr.de ([193.175.194.181]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1trdRA-00012D-Gi for bug-gnu-emacs@gnu.org; Mon, 10 Mar 2025 09:44:59 -0400 X-CSE-ConnectionGUID: +ZFHrMy2TR+LrP561ntcEw== X-CSE-MsgGUID: /OZURH4kRvOgPhlhXyTr6A== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=McAfee;i="6700,10204,11369"; a="1445606" X-IronPort-AV: E=Sophos;i="6.14,236,1736809200"; d="scan'208,217";a="1445606" Received: from unknown (HELO ukr-excmb07.ukr.local) ([172.24.2.107]) by dmz-infcsg01.ukr.dmz with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2025 14:44:41 +0100 Received: from ukr-excmb02.ukr.local (172.24.6.62) by ukr-excmb07.ukr.local (172.24.2.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Mon, 10 Mar 2025 14:44:41 +0100 Received: from ukr-excmb03.ukr.local (172.24.6.63) by ukr-excmb02.ukr.local (172.24.6.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Mon, 10 Mar 2025 14:44:41 +0100 Received: from ukr-excmb03.ukr.local ([fe80::1cb4:6e0c:6da4:a8a0]) by ukr-excmb03.ukr.local ([fe80::1cb4:6e0c:6da4:a8a0%4]) with mapi id 15.01.2507.044; Mon, 10 Mar 2025 14:44:41 +0100 From: "Windl, Ulrich" To: "bug-gnu-emacs@gnu.org" Subject: dired with unexpected character in filename: cannot delete file Thread-Topic: dired with unexpected character in filename: cannot delete file Thread-Index: AduRwpJZ5wZ+KdQbQcWYaITO823BHg== Date: Mon, 10 Mar 2025 13:44:41 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.24.3.2] Content-Type: multipart/alternative; boundary="_000_dc01c27cd05f41f5bf6fac11a3f3cdc5ukrde_" MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3223-9.1.2019-29040.007 X-TM-AS-Result: No-10--23.084800-5.000000 X-TMASE-MatchedRID: x419Gv8l7pL/vMMOhcmhDaC/RiYrx/Ozm8lEjXZMqs54qfOd233bZXY/ Wuim8lHiPX4Ak9iQLSYdshblgtJig/z2TcZayMphO9AbTF0WkMLw1CVNXUKAFb+k5cbUiCLUOln uHLbMmgUpbcBw9ONyUoPNUrPG2lvGuKkDSYU208PXujxXdzYx/FrJp/0y4AzxnCajKJzJSTja3n NNVukcLQqkacyiCmoHpHJDcZMKv5qFbo9MJtP65njC/VqWV3d7i0qYfRSPxNjs7St7yWic9plGX npzjlSItp2We9Nlpz6JK0unS9GITUfCWTjt2qaa0XB/qaiHbt2+bRigmCtRGRIIN3MAx5f90/x9 azM53txt6i3Yc1nbXzTMjv56JlnwtHEdUiA/28etu0R4mY+c85hDnkjB3FO+ep7hiCs18+7thtV /60IcIg== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--23.084800-5.000000 X-TMASE-Version: SMEX-14.0.0.3223-9.1.2019-29040.007 X-TM-SNTS-SMTP: D6ADF93B8AF2645CCD689C80EFF643E0C984D9D58FCD39CB56B4CA0C283A86122000:F Received-SPF: pass client-ip=193.175.194.181; envelope-from=u.windl@ukr.de; helo=mail01.ukr.de 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, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 10 Mar 2025 11:26:45 -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.1 (/) --_000_dc01c27cd05f41f5bf6fac11a3f3cdc5ukrde_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've managed to create a bad filename using some script. The file name is "= iredir-<<<<<<< HEAD?0.5.2n.tar.gz" (without the double quites and the '?' i= s actually an ASCI LF (line break)). When trying to delete the bad file using 'd' and 'x' in dired of Emacs 27.2= , it fails like this: It asks: Delete iredir-<<<<<<< HEAD 0.5.2n.tar.gz -rw-r--r-- (yes or no) And when entering "yes" it replies with "Deleting...done", but the file is = still there --_000_dc01c27cd05f41f5bf6fac11a3f3cdc5ukrde_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’ve managed to create a = bad filename using some script. The file name is “iredir-<<<= <<<< HEAD?0.5.2n.tar.gz” (without the double quites and t= he ‘?’ is actually an ASCI LF (line break)).<= /p>

 

When trying to delete the bad f= ile using ‘d’ and ‘x’ in dired of Emacs 27.2, it fa= ils like this:

It asks:

Delete iredir-<<<<&= lt;<< HEAD

0.5.2n.tar.gz=

  -rw-r--r-- (yes or no)

And when entering “yes= 221; it replies with “Deleting…done”, but the file is sti= ll there

 

--_000_dc01c27cd05f41f5bf6fac11a3f3cdc5ukrde_-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 10 13:24:43 2025 Received: (at 76920) by debbugs.gnu.org; 10 Mar 2025 17:24:43 +0000 Received: from localhost ([127.0.0.1]:39610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1trgrr-0006v0-Bn for submit@debbugs.gnu.org; Mon, 10 Mar 2025 13:24:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34278) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1trgro-0006uk-Nj for 76920@debbugs.gnu.org; Mon, 10 Mar 2025 13:24:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1trgrh-0002fO-7G; Mon, 10 Mar 2025 13:24:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=/OG2DCmvdDQIG1lyqgLMiqzUAsD7cNCeY1dQDw0KKsQ=; b=dyv0iX1qqUYnDm7qmYuy FNIIX+ShngCdvPf16vfKmu1t5ZYZAVwTo5julebpjDA9OT5uJN/KJGHsGOS7yxQCUSYbBqZH1Olii QV0F0Xumk1pR3BfzbfpDNA+ppuJfkYx2zZtXHr+h7QD8GejUqA9mZtPrEmadYlvfccf3tGshojE7n hgEmDuPOqyKMzQLiYJbeBveqpu2bmVDi9YKJ5pUIbKszRUnZ8x6qqzwu3tiYuzlxAx7rVvXEFpVR/ Z++ejMFEJ64ypWNy5oWaDDrCoromqFv5RM5qraLd47SsJ6jMKO5/8BHdI5qM0j5TaO+b87xTLBjBt WMLmw8+y54f/DQ==; Date: Mon, 10 Mar 2025 19:24:30 +0200 Message-Id: <86v7sgdcj5.fsf@gnu.org> From: Eli Zaretskii To: "Windl, Ulrich" In-Reply-To: (u.windl@ukr.de) Subject: Re: bug#76920: dired with unexpected character in filename: cannot delete file References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 76920 Cc: 76920@debbugs.gnu.org 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: -3.3 (---) > From: "Windl, Ulrich" > Date: Mon, 10 Mar 2025 13:44:41 +0000 > > I’ve managed to create a bad filename using some script. The file name is “iredir-<<<<<<< > HEAD?0.5.2n.tar.gz” (without the double quites and the ‘?’ is actually an ASCI LF (line break)). > > > > When trying to delete the bad file using ‘d’ and ‘x’ in dired of Emacs 27.2, it fails like this: > > It asks: > > Delete iredir-<<<<<<< HEAD > > 0.5.2n.tar.gz > > -rw-r--r-- (yes or no) > > And when entering “yes” it replies with “Deleting…done”, but the file is still there This is a known issue. To work around it, add -b to dired-listing-switches. (We cannot do that by default, because it has problems in other cases.)