From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: Re: dired cannot access file names with a quote Date: Fri, 05 Oct 2007 03:38:20 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191570455 22156 80.91.229.12 (5 Oct 2007 07:47:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 07:47:35 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Francesco Potorti` Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 05 09:47:33 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IdhuG-0004QB-T8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Oct 2007 09:47:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdhuB-0001OQ-V8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Oct 2007 03:47:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdhuA-0001O5-Sc for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2007 03:47:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Idhu8-0001NQ-12 for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2007 03:47:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Idhu7-0001NG-Tz for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2007 03:47:23 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Idhu7-0003d7-V1 for bug-gnu-emacs@gnu.org; Fri, 05 Oct 2007 03:47:24 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IdhlM-0005Ee-6Z; Fri, 05 Oct 2007 03:38:20 -0400 X-Spook: SWAT enigma pink noise crypto anarchy 2600 Magazine AFSPC X-Ran: 1"|}`6X(F`;!.I?[vhY9Cw.=1-P.]&/L>x}2a=*DWe]fK8M_yck9!>0D4o}-D$*]<{8UkC X-Hue: red X-Attribution: GM In-Reply-To: (Francesco Potorti`'s message of "Wed, 03 Oct 2007 16:47:25 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16700 Archived-At: Francesco Potorti` wrote: > The subject describes what I suspect is the cause of the bug, but I am > not sure, because I made no real investigation > > $ touch /tmp/First-October\ \'07.pdf > $ emacs -Q > C-x d /tmp/Firs TAB RET > ==> Listing directory failed but `access-file' worked This comment from insert-directory looks relevant: Quote some characters that have special meanings in shells; but don't quote the wildcards--we want them to be special. We also currently don't quote the quoting characters in case people want to use them explicitly to quote wildcard characters. Ie, (shell-quote-wildcard-pattern "/tmp/First-October '07.pdf") returns "/tmp/First-October\\ '07.pdf", rather than "/tmp/First-October\\ \\'07.pdf".