From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aura Kelloniemi Newsgroups: gmane.emacs.bugs Subject: bug#22477: 24.5; Dired does not work if file names contain newlines Date: Wed, 27 Jan 2016 21:30:58 +0200 Message-ID: <87si1ilszx.fsf@sange.fi> References: <8737tjtdqi.fsf@sange.fi> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453939476 2946 80.91.229.3 (28 Jan 2016 00:04:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2016 00:04:36 +0000 (UTC) Cc: 22477@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 27 20:32:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aOVp5-00074h-G1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jan 2016 20:32:11 +0100 Original-Received: from localhost ([::1]:52191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOVp4-00011g-Q8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jan 2016 14:32:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOVp0-00011I-IM for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 14:32:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOVow-0000MU-I4 for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 14:32:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOVow-0000MD-Ei for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 14:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aOVow-0002y0-AR for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 14:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aura Kelloniemi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jan 2016 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22477 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22477-submit@debbugs.gnu.org id=B22477.145392306711328 (code B ref 22477); Wed, 27 Jan 2016 19:32:02 +0000 Original-Received: (at 22477) by debbugs.gnu.org; 27 Jan 2016 19:31:07 +0000 Original-Received: from localhost ([127.0.0.1]:38952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOVo3-0002we-KK for submit@debbugs.gnu.org; Wed, 27 Jan 2016 14:31:07 -0500 Original-Received: from smtp-78.nebula.fi ([83.145.220.78]:44504 helo=smtp.nebula.fi) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOVo1-0002wV-ND for 22477@debbugs.gnu.org; Wed, 27 Jan 2016 14:31:06 -0500 Original-Received: from solaria (xdsl-176-187.nblnetworks.fi [217.30.176.187]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.nebula.fi (Postfix) with ESMTPS id 4436FD00FBE; Wed, 27 Jan 2016 21:31:00 +0200 (EET) In-Reply-To: User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112037 Glenn Morris writes: > Aura Kelloniemi wrote: > > 1. Create a file which contains a newline character in its name. > If you like to do weird things like that, adding "-b" to > dired-listing-switches helps. Oh no, I don't like to do such weird things. My point is not to nitpick or irritate you. I'm just interested about completeness: if Unix supports file names with control characters (which arguably is a questionable feature), then Dired (being the best file manager on the planet) should IMHO be able to deal with them, or at least document the incompatibility clearly. Also I wonder if a cracker can confuse Dired by creating a file name like this "Hello World.txt\ndrwx-r--r-- 1 user users ..." -b probably is not portable, because it's not Dired's default. But Dired could test for -b just like it tests for --dired. WDired should also support these escapes. I tried to edit with WDired a symbolic link which points to a file containing the string "->" which is a real file on my system. (In music files I use -> to separate the performer and composition names.) This did not work either. WDired failed with error "wdired-get-filename: Wrong type argument: integer-or-marker-p, nil". I noticed too, that the -F switch to ls makes Dired fail the same way as file names with embedded newlines. It was hard to google for this issue, others have certainly faced it too. But (again IMHO) -F shouldn't break Dired, or at least there should be another way to have Dired put a slash at the end of directory names. I wish you could do something to these issues. If you can't extend Dired's and WDired's escaping support, you could at least document the issues. Anyway, thank you for reading my complaints. -- Aura