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: Using `call-process-shell-command' in `process-lines' Date: Tue, 27 Nov 2007 06:13:58 +0200 Message-ID: References: <474B2D07.6050805@gmail.com> <474B35C1.1050101@gmail.com> <474B3946.5050404@gmail.com> <474B45DE.3080604@gnu.org> <474B5042.7040303@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1196136853 8320 80.91.229.12 (27 Nov 2007 04:14:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2007 04:14:13 +0000 (UTC) Cc: lekktu@gmail.com, lennart.borgman@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 27 05:14:21 2007 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 1Iwrq0-0006p8-MP for ged-emacs-devel@m.gmane.org; Tue, 27 Nov 2007 05:14:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iwrpl-00066g-Bh for ged-emacs-devel@m.gmane.org; Mon, 26 Nov 2007 23:14:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iwrpj-00066b-0W for emacs-devel@gnu.org; Mon, 26 Nov 2007 23:14:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iwrpg-00066D-Hw for emacs-devel@gnu.org; Mon, 26 Nov 2007 23:14:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iwrpg-00066A-Ez for emacs-devel@gnu.org; Mon, 26 Nov 2007 23:14:00 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iwrpd-00073E-Dz; Mon, 26 Nov 2007 23:13:57 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-239-13.inter.net.il [83.130.239.13]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EFP41748 (AUTH halo1); Tue, 27 Nov 2007 06:13:54 +0200 (IST) In-reply-to: <474B5042.7040303@gnu.org> (message from Jason Rumney on Mon, 26 Nov 2007 23:01:22 +0000) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:84201 Archived-At: > Date: Mon, 26 Nov 2007 23:01:22 +0000 > From: Jason Rumney > Cc: lekktu@gmail.com, lennart.borgman@gmail.com, > monnier@iro.umontreal.ca, emacs-devel@gnu.org > > Eli Zaretskii wrote: > > What about <, |, and > -- should we quote them as well? > > Those seem to get through to the subprocess OK, since they are handled > by the shell even on DOS/Windows. What command did you try to run? The example I had in mind was when these characters are not used for redirection, but are actually part of one of the command-line arguments, and need to wind up verbatim in the subprocess. On Posix platforms, execve will do that automatically, since it doesn't go through a shell or any similar facilities for which these characters are special.