unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* combine-and-quote-strings
@ 2015-04-12 10:59 Philipp Stephani
  0 siblings, 0 replies; 6+ messages in thread
From: Philipp Stephani @ 2015-04-12 10:59 UTC (permalink / raw)
  To: help-gnu-emacs

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?

Thanks,
Philipp



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-14 19:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.502.1428836406.904.help-gnu-emacs@gnu.org>
2015-04-12 10:55 ` combine-and-quote-strings Pascal J. Bourguignon
2015-04-12 16:15   ` combine-and-quote-strings Emanuel Berg
2015-04-12 18:04     ` combine-and-quote-strings Drew Adams
2015-04-14 19:06       ` combine-and-quote-strings Philipp Stephani
2015-04-14 18:54   ` combine-and-quote-strings Philipp Stephani
2015-04-12 10:59 combine-and-quote-strings Philipp Stephani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).