From unknown Fri Jun 20 07:14:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#22477 <22477@debbugs.gnu.org> To: bug#22477 <22477@debbugs.gnu.org> Subject: Status: 24.5; Dired does not work if file names contain newlines Reply-To: bug#22477 <22477@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:14:52 +0000 retitle 22477 24.5; Dired does not work if file names contain newlines reassign 22477 emacs submitter 22477 Aura Kelloniemi severity 22477 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 11:34:48 2016 Received: (at submit) by debbugs.gnu.org; 27 Jan 2016 16:34:48 +0000 Received: from localhost ([127.0.0.1]:38886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOT3P-00058e-SD for submit@debbugs.gnu.org; Wed, 27 Jan 2016 11:34:48 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53521) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOP6J-000614-OM for submit@debbugs.gnu.org; Wed, 27 Jan 2016 07:21:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOP6D-0006zJ-GF for submit@debbugs.gnu.org; Wed, 27 Jan 2016 07:21:26 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59772) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOP6D-0006zF-Cb for submit@debbugs.gnu.org; Wed, 27 Jan 2016 07:21:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOP6B-0002hf-V4 for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 07:21:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOP67-0006yg-M0 for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 07:21:23 -0500 Received: from smtp-78.nebula.fi ([83.145.220.78]:37216 helo=smtp.nebula.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOP67-0006yU-B0 for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 07:21:19 -0500 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 ACC89D01072 for ; Wed, 27 Jan 2016 14:21:10 +0200 (EET) From: Aura Kelloniemi To: bug-gnu-emacs@gnu.org Subject: 24.5; Dired does not work if file names contain newlines User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Wed, 27 Jan 2016 14:21:09 +0200 Message-ID: <8737tjtdqi.fsf@sange.fi> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 27 Jan 2016 11:34:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 1. Create a file which contains a newline character in its name. 2. Open the directory where the newly created file resides in dired. 3. Dired buffer is garbled and the cursor is positioned at the end of the buffer. No files can be visited (whether they contain newlines in their names or not) (Dired says: "No file on this line"). My ls version is: ls (GNU coreutils) 8.25 In my test directory the output of ls -l --dired looks like this: total 8 -rw------- 1 aura users 2 Jan 27 13:37 ''\''Hello world'\''.txt' -rw------- 1 aura users 17 Jan 27 13:47 'Hello'$'\n''World.txt' //DIRED// 52 77 120 143 //DIRED-OPTIONS// --quoting-style=shell-escape In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6) of 2015-09-10 on foutrelis Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LC_COLLATE: C value of $LANG: fi_FI.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: gpm-mouse-mode: t minibuffer-electric-default-mode: t icomplete-mode: t diff-auto-refine-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t Recent messages: [deleted, not necessary] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail mule-util t-mouse w3m-filter w3m browse-url doc-view jka-compr dired image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util haskell-interactive-mode haskell-presentation-mode haskell-mode haskell-indentation haskell-sort-imports haskell-lexeme rx haskell-align-imports haskell-complete-module flymake dabbrev haskell-font-lock haskell-collapse haskell-process haskell-session haskell-string haskell-compat noutline outline etags url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core gnus-util time-date url-vars json haskell-navigate-imports haskell-compile haskell-cabal haskell-utils haskell-customize compile comint ansi-color ring minibuf-eldef ido icomplete company pcase cus-start cus-load notmuch hl-line notmuch-message notmuch-maildir-fcc notmuch-hello edmacro kmacro wid-edit notmuch-tree notmuch-parser notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-address notmuch-wash diff-mode easy-mmode coolj notmuch-query goto-addr thingatpt icalendar diary-lib diary-loaddefs cal-menu calendar cal-loaddefs notmuch-tag crm notmuch-lib advice notmuch-version cl gv cl-loaddefs cl-lib message idna format-spec rfc822 mml mailabbrev mail-utils gmm-utils mailheader mm-view mml-smime mml-sec smime password-cache dig mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr dired-single align info easymenu package epg-config warnings server tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 231966 12461) (symbols 48 33370 0) (miscs 40 44 150) (strings 32 62167 11179) (string-bytes 1 1719435) (vectors 16 24064) (vector-slots 8 548856 5180) (floats 8 150 299) (intervals 56 273 24) (buffers 960 14) (heap 1024 46043 958)) -- Aura From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 11:40:52 2016 Received: (at 22477) by debbugs.gnu.org; 27 Jan 2016 16:40:52 +0000 Received: from localhost ([127.0.0.1]:38893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOT9H-0005Ib-W4 for submit@debbugs.gnu.org; Wed, 27 Jan 2016 11:40:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37820) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOT9F-0005IF-Qb for 22477@debbugs.gnu.org; Wed, 27 Jan 2016 11:40:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOT99-0000kn-Op for 22477@debbugs.gnu.org; Wed, 27 Jan 2016 11:40:44 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOT8X-0000OW-Sr; Wed, 27 Jan 2016 11:40:05 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1aOT8W-0008Ih-3k; Wed, 27 Jan 2016 11:40:04 -0500 From: Glenn Morris To: Aura Kelloniemi Subject: Re: bug#22477: 24.5; Dired does not work if file names contain newlines References: <8737tjtdqi.fsf@sange.fi> X-Spook: NBIC CIA Palestine Liberation Organization South Africa X-Ran: ',_)cPL@H8Q9I`2lE7Hccc#>D'o_cGpJg (Aura Kelloniemi's message of "Wed, 27 Jan 2016 14:21:09 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22477 Cc: 22477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 27 14:31:07 2016 Received: (at 22477) by debbugs.gnu.org; 27 Jan 2016 19:31:07 +0000 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 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 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) From: Aura Kelloniemi To: Glenn Morris Subject: Re: bug#22477: 24.5; Dired does not work if file names contain newlines In-Reply-To: References: <8737tjtdqi.fsf@sange.fi> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Wed, 27 Jan 2016 21:30:58 +0200 Message-ID: <87si1ilszx.fsf@sange.fi> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=0.0 required=12.0 tests=none autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp.lau.hel.nebula.fi X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22477 Cc: 22477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 21:18:20 2016 Received: (at 22477) by debbugs.gnu.org; 29 Jan 2016 02:18:21 +0000 Received: from localhost ([127.0.0.1]:40161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOydg-0004Ex-N0 for submit@debbugs.gnu.org; Thu, 28 Jan 2016 21:18:20 -0500 Received: from mail-ob0-f179.google.com ([209.85.214.179]:34820) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOydc-0004EX-MT for 22477@debbugs.gnu.org; Thu, 28 Jan 2016 21:18:17 -0500 Received: by mail-ob0-f179.google.com with SMTP id ny8so30520810obc.2 for <22477@debbugs.gnu.org>; Thu, 28 Jan 2016 18:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mime-version:content-type; bh=ga1idSLkO0cKB7WUCAHzgV78SSl3CsYTJVxSvNIgfvk=; b=m7aUwIDeLxuKFT2MyhHEr/a7ElcnOW4AiHVet8qr8HNn/Bi8kyRMSO5Uhr+3c63VSt Wg/jxUudkCG2EXqMKl9MDCMRjJaZdTjBuaiAjxgElvkyAoih6rJZSTzfYRaCMLd0xECp rQ7FBeV7u2GKV/RK/1qjL2dI0YYVUsBqUrGaD0PWq/7xIGZgehspcsC9cpQPP8rXPR6Z JS9WN1XVDzh8UDGXgQR/tL4DTDfq0EKQvv9Q+CIS6USAFdjweiUGOUJP3m9dIWc3kt9l rLs6tLEg/JCJvl5Ib+y6Xc5wNo4xwQZqxlv3YU5Sd+7nEgovRyNf8kXMetbnuGHoUZ6E gyew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:reply-to:mime-version:content-type; bh=ga1idSLkO0cKB7WUCAHzgV78SSl3CsYTJVxSvNIgfvk=; b=JmnDbCFOZhFL1cEJsKKD4LSprce5L6BxPfzNfdOIuPiNq+xGTeV/yqrcIlZXnCg7DD GdRaRQaCVMhWU5B+FZRqDoLY+LnjzGiCWdhRnCAiKl1O8U3RKFlcW52r7ScHts9gOFxF DY/Ux1r5QH3tEnf0PVPNlwM0F3Ld17r5wRC5feSAMxLOLaMem84O8vhgCHalt9adyi3E wjs/6HoaZIHAnRSNhLi3+2ywLGjcmJ+Keso2bOewNp0CKrIG1uG0WfQ7IL3Mk0NEmwpU TI4tZiFOJ9eTmOWoLpyYkgMIkv18HxspxZW8KD3W5ceaA2aub6n7bG6XFKpXrXB6H7O+ mpEQ== X-Gm-Message-State: AG10YOQ9XYC3gsQCqupLdldko9kOua7QwKncXonBwhVMM68bi9IaQXDCMsjHCCLXjX5Cow== X-Received: by 10.182.131.202 with SMTP id oo10mr4981227obb.72.1454033891406; Thu, 28 Jan 2016 18:18:11 -0800 (PST) Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id d31sm1061735oic.12.2016.01.28.18.18.08 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 28 Jan 2016 18:18:09 -0800 (PST) From: John Wiegley X-Google-Original-From: "John Wiegley" Received: by Vulcan.local (Postfix, from userid 501) id 301F71297BAE6; Thu, 28 Jan 2016 18:18:08 -0800 (PST) To: Aura Kelloniemi Subject: Re: bug#22477: 24.5; Dired does not work if file names contain newlines In-Reply-To: <87si1ilszx.fsf@sange.fi> (Aura Kelloniemi's message of "Wed, 27 Jan 2016 21:30:58 +0200") Date: Thu, 28 Jan 2016 18:18:02 -0800 Message-ID: References: <8737tjtdqi.fsf@sange.fi> <87si1ilszx.fsf@sange.fi> User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 22477 Cc: Glenn Morris , 22477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: John Wiegley Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) >>>>> Aura Kelloniemi writes: > 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. Sounds like a reasonable request. If we don't have the feature yet, adding a comment to the dired documentation on the use -b as a workaround would be good. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 01:47:28 2016 Received: (at 22477) by debbugs.gnu.org; 16 Feb 2016 06:47:28 +0000 Received: from localhost ([127.0.0.1]:40712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVZQ0-0005Jg-5R for submit@debbugs.gnu.org; Tue, 16 Feb 2016 01:47:28 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:39277) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVZPy-0005JY-5U for 22477@debbugs.gnu.org; Tue, 16 Feb 2016 01:47:26 -0500 Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aVZP3-00068e-2F; Tue, 16 Feb 2016 07:46:29 +0100 From: Lars Ingebrigtsen To: Glenn Morris Subject: Re: bug#22477: 24.5; Dired does not work if file names contain newlines References: <8737tjtdqi.fsf@sange.fi> Date: Tue, 16 Feb 2016 17:46:24 +1100 In-Reply-To: (Glenn Morris's message of "Wed, 27 Jan 2016 11:40:03 -0500") Message-ID: <87a8n15f0f.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1aVZP3-00068e-2F X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1456209990.46688@OIQ86YtWxN6xOyFqCR57Kw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 22477 Cc: 22477@debbugs.gnu.org, Aura Kelloniemi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 04:01:59 2016 Received: (at 22477) by debbugs.gnu.org; 16 Feb 2016 09:02:00 +0000 Received: from localhost ([127.0.0.1]:40794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVbW8-0004vO-9U for submit@debbugs.gnu.org; Tue, 16 Feb 2016 04:01:59 -0500 Received: from mx2.suse.de ([195.135.220.15]:55644) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVbW2-0004vC-Ot for 22477@debbugs.gnu.org; Tue, 16 Feb 2016 04:01:54 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6D577AC46; Tue, 16 Feb 2016 09:01:48 +0000 (UTC) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#22477: 24.5; Dired does not work if file names contain newlines References: <8737tjtdqi.fsf@sange.fi> <87a8n15f0f.fsf@gnus.org> X-Yow: .. hubub, hubub, HUBUB, hubub, hubub, hubub, HUBUB, hubub, hubub, hubub. Date: Tue, 16 Feb 2016 10:01:48 +0100 In-Reply-To: <87a8n15f0f.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 16 Feb 2016 17:46:24 +1100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22477 Cc: Glenn Morris , 22477@debbugs.gnu.org, Aura Kelloniemi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Lars Ingebrigtsen writes: > The reason characters like that are problematic is because we're using > "ls" and then parsing the output, I guess? dired uses ls --dired which is unambiguous. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 11:48:07 2016 Received: (at 22477) by debbugs.gnu.org; 16 Feb 2016 16:48:07 +0000 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 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 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) From: Aura Kelloniemi To: Lars Ingebrigtsen , Glenn Morris Subject: Re: bug#22477: 24.5; Dired does not work if file names contain newlines In-Reply-To: <87a8n15f0f.fsf@gnus.org> References: <8737tjtdqi.fsf@sange.fi> <87a8n15f0f.fsf@gnus.org> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Tue, 16 Feb 2016 18:47:49 +0200 Message-ID: <87oabghaa2.fsf@sange.fi> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=0.0 required=12.0 tests=none autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp.lau.hel.nebula.fi X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 22477 Cc: 22477@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun May 05 13:01:01 2019 Received: (at control) by debbugs.gnu.org; 5 May 2019 17:01:02 +0000 Received: from localhost ([127.0.0.1]:54767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNKVZ-0001Oa-Nt for submit@debbugs.gnu.org; Sun, 05 May 2019 13:01:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hNKVY-0001O3-CV for control@debbugs.gnu.org; Sun, 05 May 2019 13:01:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNKVQ-0003QX-ID for control@debbugs.gnu.org; Sun, 05 May 2019 13:00:55 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1hNKVN-0005GX-Ib for control@debbugs.gnu.org; Sun, 05 May 2019 13:00:51 -0400 Subject: control message for bug 35578 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Sun, 05 May 2019 13:00:49 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) forcemerge 22477 35578 From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 05 19:13:03 2020 Received: (at control) by debbugs.gnu.org; 5 Oct 2020 23:13:03 +0000 Received: from localhost ([127.0.0.1]:50772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPZfD-0006Kt-F7 for submit@debbugs.gnu.org; Mon, 05 Oct 2020 19:13:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPZfB-0006KD-Oc for control@debbugs.gnu.org; Mon, 05 Oct 2020 19:13:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40570) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPZf6-0004wh-G1 for control@debbugs.gnu.org; Mon, 05 Oct 2020 19:12:56 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kPZf0-0003NA-9l for control@debbugs.gnu.org; Mon, 05 Oct 2020 19:12:55 -0400 Subject: control message for bug 43789 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Mon, 05 Oct 2020 19:12:50 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 22477 43789 From unknown Fri Jun 20 07:14:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 04 Nov 2020 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator