bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43789: 27.1; Dired cannot handle file which name contains linebreak


From: Eli Zaretskii
Subject: 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@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".





reply via email to

[Prev in Thread] Current Thread [Next in Thread]