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: Mon, 05 Oct 2020 12:51:00 +0300 Message-ID: <83o8lhc86z.fsf@gnu.org> References: <368aeb12.1603.174f2d51c6d.Coremail.all_but_last@163.com> <87tuv9uiid.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26380"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43789@debbugs.gnu.org, all_but_last@163.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 05 11:52:15 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 1kPNAF-0006gj-Qu for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 11:52:15 +0200 Original-Received: from localhost ([::1]:38120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPNAB-0004sH-GR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Oct 2020 05:52:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPNA5-0004rz-IZ for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 05:52:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36414) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPNA2-0002aN-Bo for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 05:52:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPNA2-0002cy-AI for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2020 05:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2020 09:52:02 +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.160189146810030 (code B ref 43789); Mon, 05 Oct 2020 09:52:02 +0000 Original-Received: (at 43789) by debbugs.gnu.org; 5 Oct 2020 09:51:08 +0000 Original-Received: from localhost ([127.0.0.1]:47960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPN99-0002bi-JS for submit@debbugs.gnu.org; Mon, 05 Oct 2020 05:51:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPN97-0002bE-Nv for 43789@debbugs.gnu.org; Mon, 05 Oct 2020 05:51:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55696) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPN91-0002Sg-ON; Mon, 05 Oct 2020 05:50:59 -0400 Original-Received: from [176.228.60.248] (port=3080 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kPN91-0005CA-4t; Mon, 05 Oct 2020 05:50:59 -0400 In-Reply-To: <87tuv9uiid.fsf@gmx.de> (message from Michael Albinus on Mon, 05 Oct 2020 11:30:50 +0200) 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:189816 Archived-At: > From: Michael Albinus > Date: Mon, 05 Oct 2020 11:30:50 +0200 > Cc: 43789@debbugs.gnu.org > > "Zhu Zihao" writes: > > > Step to reproduce: > > > > 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. > > I recommend to avoid file names containing line breaks. Tramp, for > example, cannot handle them at all. Cannot agree more. And I think we shouldn't tweak our implementation too much for such use cases, given that there's an easy workaround.