From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.devel Subject: Re: shell-command - missing shell-quote-argument for program? Date: Mon, 16 Oct 2006 23:33:47 +0100 Message-ID: References: <452517DC.5010007@student.lu.se> <45251C56.8010603@student.lu.se> <4526434B.9010606@student.lu.se> <452AC9D6.9030602@student.lu.se> <4532871D.9030706@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161057980 3208 80.91.229.2 (17 Oct 2006 04:06:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2006 04:06:20 +0000 (UTC) Cc: worley@world.std.com, t.link@gmx.at, briot@gnat.com, Emacs Devel , Holger.Schauer@gmx.de, storm@cua.dk, pbreton@cs.umb.edu, pk_at_work@yahoo.com, dominik@science.uva.nl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 17 06:06:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GZgDW-0005l3-D4 for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 06:06:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZgDV-0000pC-Vm for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 00:06:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GZb1w-0000b3-EE for emacs-devel@gnu.org; Mon, 16 Oct 2006 18:33:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GZb1u-0000Zk-E7 for emacs-devel@gnu.org; Mon, 16 Oct 2006 18:33:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZb1u-0000ZX-3L for emacs-devel@gnu.org; Mon, 16 Oct 2006 18:33:54 -0400 Original-Received: from [217.158.120.143] (helo=mail.ukfsn.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GZbB6-0008R7-R0 for emacs-devel@gnu.org; Mon, 16 Oct 2006 18:43:25 -0400 Original-Received: from localhost (84-45-211-153.no-dns-yet.enta.net [84.45.211.153]) by mail.ukfsn.org (Postfix) with ESMTP id 44FB1E70B8; Mon, 16 Oct 2006 23:32:41 +0100 (BST) Original-Received: from fx by localhost with local (Exim 4.60) (envelope-from ) id 1GZb1o-0003ew-6A; Mon, 16 Oct 2006 23:33:48 +0100 Original-To: Lennart Borgman X-Draft-From: ("nnml:Misc" 3936) In-Reply-To: <4532871D.9030706@student.lu.se> (Lennart Borgman's message of "Sun\, 15 Oct 2006 21\:08\:13 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) X-Mailman-Approved-At: Tue, 17 Oct 2006 00:05:17 -0400 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:60805 Archived-At: Lennart Borgman writes: >> I don't have the Emacs CVS version to hand, but if that has a problem, >> please chase whoever changed it. In my version the only instance of >> `shell-command' is: >> (shell-command-to-string (concat python-command " -V")) >> and I don't understand what you mean by referring to python-command. >> Have you read its doc (or has that been changed too)? >> > My impression right now is that this special case could not be quoted > since python-command could be a file name with arguments. If you think there's any doubt about that expression, I'm afraid you're quite confused, and I suspect you're confused about other things. >> The thing that is/was wrong in principle with command arg processing >> in python.el is `python-args-to-list' -- see its fixme. Similarly for >> anything else that's copied the mechanism from cmuscheme.el. (The >> inferior interpreter mechanism is one of the things which should be >> abstracted, though, rather than fixing individual versions IMNSHO.) >> > Thanks for the pointer. Has this been fixed in the version of > python.el that you maintain yourself? No, that would be a waste of time; forget I mentioned it.