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

From: "Zhu Zihao" <[email-masked]>
Date: Sun, 4 Oct 2020 17:49:17 +0800 (CST)

Thank you, what about make this a part of default ls switch?

At 2020-10-04 17:36:58, "Eli Zaretskii" <[email-masked]> wrote:
>> Date: Sun, 4 Oct 2020 16:58:06 +0800 (CST)
>> From: "Zhu Zihao" <[email-masked]>
>> 
>> 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".