GNU bug report logs - #52166
Dired doesn't handle filenames with newlines

Previous Next

Package: emacs;

Reported by: Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>

Date: Sun, 28 Nov 2021 19:27:01 UTC

Severity: normal

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52166 in the body.
You can then email your comments to 52166 AT debbugs.gnu.org in the normal way.

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#52166; Package emacs. (Sun, 28 Nov 2021 19:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 28 Nov 2021 19:27:02 GMT) Full text and rfc822 format available.

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

From: Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>
To: bug-gnu-emacs <at> gnu.org
Subject: Dired doesn't handle filenames with newlines
Date: Sun, 28 Nov 2021 20:26:21 +0100
Create a file named `
file.txt` in `dired' (that is, with a newline included).  It's possible
to mark this file, but when I try to delete it, `dired' complains that
there is "No file on this line".

Moreover, only "file.txt" is displayed on the next line, with no
indication that the filename starts with a newline.  This makes it easy
to miss it at a glance.  It could be helpful to have an option of the
filename instead being displayed like "^Jfile.txt" instead.

I'm using a recent build of Emacs 29 (from 24 November) on macOS.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52166; Package emacs. (Sun, 28 Nov 2021 19:43:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>
Cc: 52166 <at> debbugs.gnu.org
Subject: Re: bug#52166: Dired doesn't handle filenames with newlines
Date: Sun, 28 Nov 2021 21:42:12 +0200
> From: Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>
> Date: Sun, 28 Nov 2021 20:26:21 +0100
> 
> Create a file named `
> file.txt` in `dired' (that is, with a newline included).  It's possible
> to mark this file, but when I try to delete it, `dired' complains that
> there is "No file on this line".
> 
> Moreover, only "file.txt" is displayed on the next line, with no
> indication that the filename starts with a newline.  This makes it easy
> to miss it at a glance.  It could be helpful to have an option of the
> filename instead being displayed like "^Jfile.txt" instead.

You need to add -b to the ls switches used by Dired, and then you will
have what you want.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52166; Package emacs. (Mon, 29 Nov 2021 15:31:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>, 52166 <at> debbugs.gnu.org
Subject: Re: bug#52166: Dired doesn't handle filenames with newlines
Date: Mon, 29 Nov 2021 16:30:34 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> You need to add -b to the ls switches used by Dired, and then you will
> have what you want.

And I think we've previously decided that this is not something we're
going to attempt to solve in a more general way, so I'm closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 29 Nov 2021 15:31:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 52166 <at> debbugs.gnu.org and Tor Kringeland <tor.a.s.kringeland <at> ntnu.no> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 29 Nov 2021 15:31:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 28 Dec 2021 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 81 days ago.

Previous Next


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