From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#43789: 27.1; Dired cannot handle file which name contains linebreak Date: Sun, 04 Oct 2020 12:36:58 +0300 Message-ID: <83v9fqe3id.fsf@gnu.org> References: <368aeb12.1603.174f2d51c6d.Coremail.all_but_last@163.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40236"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43789@debbugs.gnu.org To: "Zhu Zihao" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 04 11:38:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kP0T2-000AO6-Uf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 11:38:08 +0200 Original-Received: from localhost ([::1]:44380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP0T2-0000zb-0o for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Oct 2020 05:38:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP0Sw-0000zU-CF for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 05:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33420) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kP0Sw-0002gf-2w for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 05:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kP0Sv-0004DY-Uz for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 05:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Oct 2020 09:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43789 X-GNU-PR-Package: emacs Original-Received: via spool by 43789-submit@debbugs.gnu.org id=B43789.160180422816151 (code B ref 43789); Sun, 04 Oct 2020 09:38:01 +0000 Original-Received: (at 43789) by debbugs.gnu.org; 4 Oct 2020 09:37:08 +0000 Original-Received: from localhost ([127.0.0.1]:44966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP0S4-0004CR-0Z for submit@debbugs.gnu.org; Sun, 04 Oct 2020 05:37:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP0S2-0004Bx-73 for 43789@debbugs.gnu.org; Sun, 04 Oct 2020 05:37:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39107) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kP0Rw-0002b8-UN; Sun, 04 Oct 2020 05:37:00 -0400 Original-Received: from [176.228.60.248] (port=4042 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kP0Rw-00008A-6L; Sun, 04 Oct 2020 05:37:00 -0400 In-Reply-To: <368aeb12.1603.174f2d51c6d.Coremail.all_but_last@163.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189746 Archived-At: > Date: Sun, 4 Oct 2020 16:58:06 +0800 (CST) > From: "Zhu Zihao" > > 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".