From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7563: 23.2; `split-string-and-unquote' mis-documented / purpose unclear Date: Sat, 11 Dec 2010 20:50:34 +0200 Message-ID: <83tyikta85.fsf@gnu.org> References: <83fwu4vdsk.fsf@gnu.org> <834oakux25.fsf@gnu.org> <524EC395-B36D-4678-AF93-43C24C9E9745@boostpro.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1292094936 6985 80.91.229.12 (11 Dec 2010 19:15:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Dec 2010 19:15:36 +0000 (UTC) Cc: 7563@debbugs.gnu.org To: Dave Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 11 20:15:32 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRUum-000171-JL for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Dec 2010 20:15:28 +0100 Original-Received: from localhost ([127.0.0.1]:36594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRUul-0005qe-PJ for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Dec 2010 14:15:27 -0500 Original-Received: from [140.186.70.92] (port=57014 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRUnR-00073o-1D for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2010 14:08:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRUYP-0006Tt-Nh for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2010 13:53:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRUYP-0006Te-IP for bug-gnu-emacs@gnu.org; Sat, 11 Dec 2010 13:52:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PRURL-0006lg-6D; Sat, 11 Dec 2010 13:45:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Dec 2010 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7563 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7563-submit@debbugs.gnu.org id=B7563.129209306125948 (code B ref 7563); Sat, 11 Dec 2010 18:45:02 +0000 Original-Received: (at 7563) by debbugs.gnu.org; 11 Dec 2010 18:44:21 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRUQe-0006kT-Va for submit@debbugs.gnu.org; Sat, 11 Dec 2010 13:44:21 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRUQc-0006kH-UX for 7563@debbugs.gnu.org; Sat, 11 Dec 2010 13:44:19 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LDA003001GAI600@a-mtaout20.012.net.il> for 7563@debbugs.gnu.org; Sat, 11 Dec 2010 20:50:23 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.142.197]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LDA0038F1NU2G80@a-mtaout20.012.net.il>; Sat, 11 Dec 2010 20:50:20 +0200 (IST) In-reply-to: <524EC395-B36D-4678-AF93-43C24C9E9745@boostpro.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 11 Dec 2010 13:45:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42426 Archived-At: > Cc: "7563-done@debbugs.gnu.org" <7563-done@debbugs.gnu.org>, > "1212-done@debbugs.gnu.org" <1212-done@debbugs.gnu.org> > From: Dave Abrahams > Date: Sat, 11 Dec 2010 12:57:30 -0500 > > Sorry, let me precise: your fix is correct inasmuch as it fulfills your intention, but the text you were working on is still wrong because it says quite clearly that backslash escaping is supported, but as I have shown, it is not. Quoting with backslashes _is_ supported, in the Lisp string style. Try this, for example: (split-string-and-unquote "\"foo\\\"bar\" bar") => ("foo\"bar" "bar") > Specifically it specifically states they handle backslashes, and strongly implies that they have generally-useful semantics for interacting with arbitrary shells, when in fact they are essentially implementation details of call-/start-process whose semantics are only appropriate to an undocumented set of conditions set up in those two functions. I tried to make it more clear that these functions are mainly for working with command-line arguments of call-/start-process. > >> * The functions' design still has nothing to do with shell quoting; > >> they are hard-coded to work with double-quotes and only > >> double-quotes, which is not guaranteed to work for an arbitrary > >> definition of "shell." > > > > I believe the manual says precisely that. If the problem is with > > mentioning "shell", would removing that solve this difficulty? > > It would certainly help Done.