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


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Zhu Zihao" <all_but_last <at> 163.com>
Cc: 43789 <at> debbugs.gnu.org
Subject: Re: bug#43789: 27.1;
 Dired cannot handle file which name contains linebreak
Date: Sun, 04 Oct 2020 12:36:58 +0300
> Date: Sun, 4 Oct 2020 16:58:06 +0800 (CST)
> From: "Zhu Zihao" <all_but_last <at> 163.com>
> 
> 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.

You need to add -b to the 'ls' switches, and then it will work.  That
is:

  C-u C-x d
  b RET

The "b RET" part makes the switches passed to 'ls' be "-alb" instead
of the default "-al".




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.