From: Philipp Stephani <p.stephani2@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: combine-and-quote-strings
Date: Sun, 12 Apr 2015 12:59:33 +0200 [thread overview]
Message-ID: <m2sic5zk6i.fsf@gmail.com> (raw)
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
next reply other threads:[~2015-04-12 10:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-12 10:59 Philipp Stephani [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2sic5zk6i.fsf@gmail.com \
--to=p.stephani2@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.