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: Tue, 16 Feb 2016 18:47:49 +0200 Message-ID: <87oabghaa2.fsf@sange.fi> References: <8737tjtdqi.fsf@sange.fi> <87a8n15f0f.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455641981 17714 80.91.229.3 (16 Feb 2016 16:59:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 16:59:41 +0000 (UTC) Cc: 22477@debbugs.gnu.org To: Lars Ingebrigtsen , Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 16 17:59:31 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 1aViyI-0000b9-Mf for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Feb 2016 17:59:30 +0100 Original-Received: from localhost ([::1]:48212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aViyI-0003DV-2f for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Feb 2016 11:59:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVioE-0002pe-Cu for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:49:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVioA-0002Z5-L6 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:49:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVioA-0002Yy-Hw for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVioA-0002fm-81 for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 11:49: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: Tue, 16 Feb 2016 16:49: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.145564128710205 (code B ref 22477); Tue, 16 Feb 2016 16:49:02 +0000 Original-Received: (at 22477) by debbugs.gnu.org; 16 Feb 2016 16:48:07 +0000 Original-Received: from localhost ([127.0.0.1]:38269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVinG-0002eW-0V for submit@debbugs.gnu.org; Tue, 16 Feb 2016 11:48:07 -0500 Original-Received: from smtp-78.nebula.fi ([83.145.220.78]:34860 helo=smtp.nebula.fi) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVinB-0002dy-4j for 22477@debbugs.gnu.org; Tue, 16 Feb 2016 11:48:04 -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 1673CD00FDB; Tue, 16 Feb 2016 18:47:54 +0200 (EET) In-Reply-To: <87a8n15f0f.fsf@gnus.org> 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:113142 Archived-At: Lars Ingebrigtsen writes: > 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. > The reason characters like that are problematic is because we're using > "ls" and then parsing the output, I guess? Is there any particular > reason dired is still doing that? Is the ls-lisp.el implementation > noticeably slower still? According to the Emacs manual, ls-lisp is lacking some features that the ls binary generally has. What comes to special characters, ls supports many quoting styles, which Emacs could implement (at least GNU ls supports them). But the most portable, secure and configurable solution would be to enhance (or rewrite) ls-lisp. It could support additional features which cannot be very well implemented when using read ls, like allowing the user to control the format of printed directory entries (I personally would like the file permissions and other attributes to be shown on the right edge of the window and the file name on the left, not the other way around as with 'ls -l'). -- Aura