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: Thu, 23 Oct 2008 06:29:07 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1224736208 23742 80.91.229.12 (23 Oct 2008 04:30:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2008 04:30:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 23 06:31:09 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 1Ksrqm-00070U-4W for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2008 06:31:08 +0200 Original-Received: from localhost ([127.0.0.1]:37533 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksrpg-0006A6-DR for ged-emacs-devel@m.gmane.org; Thu, 23 Oct 2008 00:30:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ksrpd-000690-4M for emacs-devel@gnu.org; Thu, 23 Oct 2008 00:29:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ksrpb-00067B-Fh for emacs-devel@gnu.org; Thu, 23 Oct 2008 00:29:55 -0400 Original-Received: from [199.232.76.173] (port=57791 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ksrpb-000676-AU for emacs-devel@gnu.org; Thu, 23 Oct 2008 00:29:55 -0400 Original-Received: from mtaout6.012.net.il ([84.95.2.16]:50586) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ksrpb-00053D-2C for emacs-devel@gnu.org; Thu, 23 Oct 2008 00:29:55 -0400 Original-Received: from HOME-C4E4A596F7 ([77.126.98.197]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K9600I5QCIUDT30@i-mtaout6.012.net.il> for emacs-devel@gnu.org; Thu, 23 Oct 2008 06:30:32 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:104890 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Wed, 22 Oct 2008 21:18:20 -0400 > > >> >> I do not understand: what makes you think it could be a properly quoted > >> >> shell command? > >> > Because you said that working with shell commands was why these > >> > functions were invented in the first place. And that is how they are > >> > used in Emacs as of now. > >> No, they're used to run commands. Without going through a shell. > > Then why would one need quoting? > > Because when you run a command with start-process or call-process, you > need to specify a list of strings (each being an argument), but the user > usually wants to enter the list within a single minibuffer. So from the > string returned by the read-string (or equivalent) function, we need to > get a list of strings. If I am prompted for a command in the minibuffer, as in "M-x compile", I will type a command that uses shell quoting (assuming I need quoting). That is the natural thing to do, so I expect most users to do the same. I don't expect many of them to use Lisp string quoting for commands.