[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired cannot access file names with a quote
From: |
Glenn Morris |
Subject: |
Re: dired cannot access file names with a quote |
Date: |
Fri, 05 Oct 2007 03:38:20 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
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".