From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: shell-command - missing shell-quote-argument for program? Date: Thu, 05 Oct 2006 22:21:14 +0200 Message-ID: <4525693A.7080309@student.lu.se> References: <452517DC.5010007@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1160079885 5955 80.91.229.2 (5 Oct 2006 20:24:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Oct 2006 20:24:45 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 05 22:24:44 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 1GVZij-0002o9-SM for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2006 22:21:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVZij-0001MT-BJ for ged-emacs-devel@m.gmane.org; Thu, 05 Oct 2006 16:21:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVZiY-0001M0-6r for emacs-devel@gnu.org; Thu, 05 Oct 2006 16:21:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVZiW-0001LJ-J8 for emacs-devel@gnu.org; Thu, 05 Oct 2006 16:21:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVZiW-0001LG-Dg for emacs-devel@gnu.org; Thu, 05 Oct 2006 16:21:16 -0400 Original-Received: from [81.228.11.98] (helo=pne-smtpout1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GVZpE-0005x2-Jb; Thu, 05 Oct 2006 16:28:12 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout1-sn1.fre.skanova.net (7.2.076) id 4523CB570005F355; Thu, 5 Oct 2006 22:21:14 +0200 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: Eli Zaretskii In-Reply-To: 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:60441 Archived-At: Eli Zaretskii wrote: >> 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.) > Thanks, I see. Is that pointed out somewhere in the manual already? But this does not change the need for quoting the file argument in those cases I pointed out. I am however not quite sure about what to do so I would like some suggestions.