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: shell-command - missing shell-quote-argument for program? Date: Thu, 05 Oct 2006 21:58:10 +0200 Message-ID: References: <452517DC.5010007@student.lu.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1160078388 32541 80.91.229.2 (5 Oct 2006 19:59:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2006 19:59:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 21:59:45 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 1GVZMP-0004W7-Gy for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2006 21:58:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVZMP-0004Y8-5H for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2006 15:58:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVZMC-0004We-Ve for emacs-devel@gnu.org; Thu, 05 Oct 2006 15:58:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVZMA-0004TJ-Pi for emacs-devel@gnu.org; Thu, 05 Oct 2006 15:58:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVZMA-0004TG-Lu for emacs-devel@gnu.org; Thu, 05 Oct 2006 15:58:10 -0400 Original-Received: from [192.114.186.73] (helo=heller.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GVZSs-0003Iv-SN for emacs-devel@gnu.org; Thu, 05 Oct 2006 16:05:07 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-240-211.inter.net.il [84.228.240.211]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id AQJ04672 (AUTH halo1); Thu, 5 Oct 2006 20:58:00 +0200 (IST) Original-To: Lennart Borgman In-reply-to: <452517DC.5010007@student.lu.se> (message from Lennart Borgman on Thu, 05 Oct 2006 16:34:04 +0200) 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:60439 Archived-At: > Date: Thu, 05 Oct 2006 16:34:04 +0200 > From: Lennart Borgman > > Should not the program name be quoted by `shell-quote-argment' when it > is possible? Only when Emacs generates the program name itself. When the program comes from the user typing its name (typically, into the minibuffer), it's the user's responsibility to quote whatever arguments need that, precisely as she would when typing the command at the shell's prompt. (Stefan pointed out one situation where the latter behavior is quite necessary, but there are other similar cases as well.)