GNU bug report logs - #76920
dired with unexpected character in filename: cannot delete file

Previous Next

Package: emacs;

Reported by: "Windl, Ulrich" <u.windl <at> ukr.de>

Date: Mon, 10 Mar 2025 15:27:01 UTC

Severity: normal

To reply to this bug, email your comments to 76920 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#76920; Package emacs. (Mon, 10 Mar 2025 15:27:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Windl, Ulrich" <u.windl <at> ukr.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 10 Mar 2025 15:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Windl, Ulrich" <u.windl <at> ukr.de>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: dired with unexpected character in filename: cannot delete file
Date: Mon, 10 Mar 2025 13:44:41 +0000
[Message part 1 (text/plain, inline)]
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

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76920; Package emacs. (Mon, 10 Mar 2025 17:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 76920 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Windl, Ulrich" <u.windl <at> ukr.de>
Cc: 76920 <at> debbugs.gnu.org
Subject: Re: bug#76920: dired with unexpected character in filename: cannot
 delete file
Date: Mon, 10 Mar 2025 19:24:30 +0200
> From: "Windl, Ulrich" <u.windl <at> ukr.de>
> 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.)




This bug report was last modified 65 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.