From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Quote file name args to start-process-shell-command? Date: Thu, 12 Oct 2006 11:49:39 +0200 Message-ID: <858xjlq2x8.fsf@lola.goethe.zz> References: <452D54D8.7060705@student.lu.se> <452DDBC8.2060606@student.lu.se> <85y7rmou5t.fsf@lola.goethe.zz> <85d58xq3xd.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160647911 28045 80.91.229.2 (12 Oct 2006 10:11:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2006 10:11:51 +0000 (UTC) Cc: Lennart Borgman , Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 12 12:11:49 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 1GXxUd-0000xk-Dp for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2006 12:08:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXxUc-0000SC-S4 for ged-emacs-devel@m.gmane.org; Thu, 12 Oct 2006 06:08:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GXxCt-000226-1C for emacs-devel@gnu.org; Thu, 12 Oct 2006 05:50:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GXxCr-00021Z-C7 for emacs-devel@gnu.org; Thu, 12 Oct 2006 05:50:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GXxCp-000210-Ui for emacs-devel@gnu.org; Thu, 12 Oct 2006 05:50:24 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GXxL2-0001Cb-6k for emacs-devel@gnu.org; Thu, 12 Oct 2006 05:58:52 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1GXxCp-0005tK-0J; Thu, 12 Oct 2006 05:50:23 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6096E1CE169B; Thu, 12 Oct 2006 11:49:39 +0200 (CEST) Original-To: Andreas Schwab In-Reply-To: (Andreas Schwab's message of "Thu\, 12 Oct 2006 11\:41\:52 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:60638 Archived-At: Andreas Schwab writes: > David Kastrup writes: > >> Spaces are neither a wildcard nor a redirection. > > The function executes a shell command. Shell commands can include > many kinds of meta characters, including wildcards and redirections. Spaces are neither a wildcard nor a redirection. >> Straw man. This never was about "metacharacter handling" but >> rather about argument processing. > > The function is about shell commands. That includes any kind of > meta characters. This works as documented. I disagree. If I call something like (start-process-shell-command "ls" "*scratch*" "ls" "\"Program" "Files\"") then "\"Program" and "Files\"" are not become separate arguments to the shell. Rather there is one argument "Program Files". The command should either make some attempt to actually pass separate arguments (and that means quoting of word separating entities), or just accept a single string as an argument. Everything else is inconsistent. Again: this does not at all have anything to do with wildcards and redirections, so I fail to see why you bring them up time and again. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum