[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request: Function to quote filenames

From: Nicolas Richard
Subject: Re: Feature Request: Function to quote filenames
Date: Wed, 24 Jun 2015 17:34:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)


raman <address@hidden> writes:
> (setq f (shell-quote-argument "Alice's Adventures in Wonderland"))
> returns 
> "Alice\\'s\\ Adventures\\ in\\ Wonderland"
>  But invocations like 
> (shell-command (format "ls %s" f))
>  throw an error 

It works for me after saying
    touch "Alice's Adventures in Wonderland"
in a shell. What error do you get ?

> Would be nice if we had a shell-quote-filename elisp function that did
> all of the magic quoting.

If the aim is to quote for the shell, shell-quote-argument always did
the job for me.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]