From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems Date: Tue, 21 Oct 2008 18:05:23 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224605519 1795 80.91.229.12 (21 Oct 2008 16:11:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 16:11:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 21 18:12:57 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsJoZ-0000vV-7A for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 18:10:35 +0200 Original-Received: from localhost ([127.0.0.1]:51064 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsJnT-0004qm-Nb for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 12:09:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsJk9-0003FJ-Gq for emacs-devel@gnu.org; Tue, 21 Oct 2008 12:06:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsJk8-0003Ei-HD for emacs-devel@gnu.org; Tue, 21 Oct 2008 12:06:00 -0400 Original-Received: from [199.232.76.173] (port=48605 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsJk8-0003EW-7L for emacs-devel@gnu.org; Tue, 21 Oct 2008 12:06:00 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]:40912) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsJk7-0008OG-Vu for emacs-devel@gnu.org; Tue, 21 Oct 2008 12:06:00 -0400 Original-Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K9300KN9JFB19E0@i_mtaout4.012.net.il> for emacs-devel@gnu.org; Tue, 21 Oct 2008 18:06:47 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104756 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Tue, 21 Oct 2008 11:43:25 -0400 > > > However, this describes roughly what the code does (which I kinda > > understood myself by reading it ;-), but does not explain under what > > circumstances would those functions be useful. By looking at the uses > > of split-string-and-unquote, I deduced that the intended use is for > > taking apart shell command lines. If that is not the intent, then > > what is it? > > The intent is for the user to be able to enter in a minibuffer a list of > strings, where most of them should usually not need any quoting. > The most common use is to enter a list of arguments to pass to > a command. Note that "arguments to pass to a command" (even if the > first element could be the command itself) is not the same as "shell > command line", since it does not include operators such as |, &, ;, $, > and `. Well, in that case my understanding of the intent of these functions was quite accurate. Which also means that split-string-and-unquote should, indeed, handle quoting with a backslash and ".." quoting in the middle of a word, as in `foo" "bar'. Right?