Thank you, what about make this a part of default ls switch?
At 2020-10-04 17:36:58, "Eli Zaretskii" <eliz@gnu.org> wrote:
>> 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".