emacs-devel
[Top][All Lists]
Advanced

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

Re: Feature Request: Function to quote filenames


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

raman <address@hidden> writes:

> As an example: Given the filename:
>
> Alice's Adventures in Wonderland
>
> (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 

Which error does it throw?

ELISP> (shell-command (format "ls %s" (shell-quote-argument "Alice's Adventures 
in Wonderland")))
2 (#o2, #x2, ?\C-b)

Andreas.

-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

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