help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: combine-and-quote-strings


From: Pascal J. Bourguignon
Subject: Re: combine-and-quote-strings
Date: Sun, 12 Apr 2015 12:55:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Philipp Stephani <address@hidden> writes:

> Hi,
>
> the Lisp manual explains (in the section "Shell Arguments"):
>
>     The following two functions are useful for combining a list of
>     individual command-line argument strings into a single string,
>
> This is about combine-and-quote-strings (and
> split-strings-and-unquote).  However, combine-and-quote-strings can't
> really be used for that purpose because it doesn't quote many shell
> metacharacters.  The correct way to shell-quote a list of arguments is
>
>     (mapconcat #'shell-quote-argument ARGS " ")
>
> Should combine-and-quote-strings be reimplemented in terms of
> shell-quote-argument?  The current definition doesn't seem to be optimal
> for shell quoting because many inputs aren't properly quoted.
>
> Or is combine-and-quote-strings not intended for shell quoting at all
> and the documentation should be adapted?

The documentation ofcombine-and-quote-strings doesn't mention shell
quoting at all.


-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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