From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.help
Subject: combine-and-quote-strings
Date: Sun, 12 Apr 2015 12:59:33 +0200
Message-ID:
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: ger.gmane.org 1428836424 23192 80.91.229.3 (12 Apr 2015 11:00:24 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 12 Apr 2015 11:00:24 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 12 13:00:16 2015
Return-path:
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by plane.gmane.org with esmtp (Exim 4.69)
(envelope-from )
id 1YhFce-0008OY-34
for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2015 13:00:16 +0200
Original-Received: from localhost ([::1]:44858 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1YhFcc-0000MA-VL
for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2015 07:00:14 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46443)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YhFcS-0000L7-40
for help-gnu-emacs@gnu.org; Sun, 12 Apr 2015 07:00:04 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1YhFcR-00083M-63
for help-gnu-emacs@gnu.org; Sun, 12 Apr 2015 07:00:03 -0400
Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:38774)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1YhFcQ-00082o-VE
for help-gnu-emacs@gnu.org; Sun, 12 Apr 2015 07:00:03 -0400
Original-Received: by wiun10 with SMTP id n10so38781282wiu.1
for ; Sun, 12 Apr 2015 04:00:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:subject:date:message-id:mime-version:content-type;
bh=sR3Am5nMHBG+CqyLjzRfAcVWQfIibfw3XQmNYEu6PjU=;
b=tQj5jNnsBW+C7LshX0/TI987VOu2VGnFOwqNDMBA/w9M8RlNtKBN6B2xs3ACTEBmWt
JE4RD/lS0bVm+2VIM2gme6mmEeZ2ktxvlS4v1nRNZiS8g2YHN5Cob4Qo7cAwN2+N9BJr
EjTLVQ7yqT8Xqxsu/2ZIjacGJJVjLI1tjZ21+86n+p8r07RfNUPWKIWOBhj96ceL03ar
hwMqtJFAId+PHRUkS1ndlOkQ8CNVsKz6fS7iEeGBjecROMay9etup6WfUtwKKYXuf4MN
XhebP0bJ++hp1U/Y0jXGCE43dcSrmp0VeVijL0F4eepfogbdRAAtxPYSJIPEqjJfDAkS
Kjbg==
X-Received: by 10.194.92.137 with SMTP id cm9mr18530016wjb.133.1428836402283;
Sun, 12 Apr 2015 04:00:02 -0700 (PDT)
Original-Received: from p ([2001:4c50:32e:4e00:452e:8016:267f:9485])
by mx.google.com with ESMTPSA id eh5sm6477738wic.20.2015.04.12.04.00.01
for
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 12 Apr 2015 04:00:01 -0700 (PDT)
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
(bad octet value).
X-Received-From: 2a00:1450:400c:c05::22c
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Users list for the GNU Emacs text editor
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:103653
Archived-At:
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