From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: bug#1212: 23.0.60; split-string-and-unquote problems Date: Tue, 21 Oct 2008 11:43:25 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224603837 27218 80.91.229.12 (21 Oct 2008 15:43:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 15:43:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 21 17:44:52 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 1KsJPc-00079M-Ik for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 17:44:48 +0200 Original-Received: from localhost ([127.0.0.1]:60972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsJOW-0004BP-T2 for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 11:43:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsJOS-0004AT-B4 for emacs-devel@gnu.org; Tue, 21 Oct 2008 11:43:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsJOP-0004AD-Tp for emacs-devel@gnu.org; Tue, 21 Oct 2008 11:43:35 -0400 Original-Received: from [199.232.76.173] (port=41553 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsJOP-0004AA-Ql for emacs-devel@gnu.org; Tue, 21 Oct 2008 11:43:33 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:58188) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsJOL-0002zI-NK; Tue, 21 Oct 2008 11:43:29 -0400 Original-Received: from alfajor.home (vpn-132-204-232-53.acd.umontreal.ca [132.204.232.53]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m9LFhQgB000754; Tue, 21 Oct 2008 11:43:26 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 0B0631C164; Tue, 21 Oct 2008 11:43:25 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 08:27:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3129=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:104752 Archived-At: > 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 `. Stefan