GNU bug report logs - #43789
27.1; Dired cannot handle file which name contains linebreak

Previous Next

Package: emacs;

Reported by: "Zhu Zihao" <all_but_last <at> 163.com>

Date: Sun, 4 Oct 2020 09:14:01 UTC

Severity: minor

Merged with 22477, 35578

Found in versions 24.5, 27.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Michael Albinus <michael.albinus <at> gmx.de>, Zhu Zihao <all_but_last <at> 163.com>
Cc: 43789 <at> debbugs.gnu.org
Subject: bug#43789: 27.1; Dired cannot handle file which name contains linebreak
Date: Mon, 5 Oct 2020 09:53:15 -0700 (PDT)
> > 1. Use touch from coreutils or find-file in Emacs to create a file
> > which name contains a linebreak. (e.g. "line\nbreak")
> > 2. Visit it in dired, you cannot do anything with this file because
> > the characters after "\n" was ignored by dired.
> 
> I recommend to avoid file names containing line breaks. Tramp, for
> example, cannot handle them at all.

And it's likely to mess up font-locking and other
Dired features that expect a newline to indicate
the end of a Dired line.

Dired, and other line-oriented displays, are a bit
fragile in this respect.




This bug report was last modified 4 years and 224 days ago.

Previous Next


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