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: Emacs vista build failures Date: Tue, 22 Jul 2008 09:13:16 -0400 Message-ID: References: <36366a980807101702r5677d096g8e62ef5b3e278868@mail.gmail.com> <4eb0089f0807121340x5e26f6dbve03ef50b238f3a3a@mail.gmail.com> <87k5fph5rh.fsf@stupidchicken.com> <20080713214648.GB1076@muc.de> <20080714195651.GF3445@muc.de> <487C5FA3.4070603@emf.net> <87zloggji9.fsf@catnip.gol.com> <878wvxxkn6.fsf@catnip.gol.com> <87ej5oz4pb.fsf@saeurebad.de> <87vdyzxype.fsf@saeurebad.de> <871w1njq32.fsf@catnip.gol.com> <87iquzxgtk.fsf@saeurebad.de> <4884CFEF.8040404@gmail.com> <87ej5nxew2.fsf@saeurebad.de> <85y73u96jl.fsf@lola.goethe.zz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1216732490 1716 80.91.229.12 (22 Jul 2008 13:14:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2008 13:14:50 +0000 (UTC) Cc: hannes@saeurebad.de, emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 22 15:15:39 2008 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 1KLHhn-0004PJ-35 for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 15:15:04 +0200 Original-Received: from localhost ([127.0.0.1]:50261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLHgs-00030z-HR for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 09:14:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLHgn-00030O-IM for emacs-devel@gnu.org; Tue, 22 Jul 2008 09:14:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLHgm-0002zu-H5 for emacs-devel@gnu.org; Tue, 22 Jul 2008 09:14:01 -0400 Original-Received: from [199.232.76.173] (port=41947 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLHgm-0002zq-CM for emacs-devel@gnu.org; Tue, 22 Jul 2008 09:14:00 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:33316) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLHgm-0003Du-2P for emacs-devel@gnu.org; Tue, 22 Jul 2008 09:14:00 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KLHg4-0006hq-3K; Tue, 22 Jul 2008 09:13:16 -0400 In-reply-to: <85y73u96jl.fsf@lola.goethe.zz> (message from David Kastrup on Tue, 22 Jul 2008 01:11:26 +0200) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:101184 Archived-At: > From: David Kastrup > Cc: Johannes Weiner , emacs-devel@gnu.org > Date: Tue, 22 Jul 2008 01:11:26 +0200 > > There is no reliable way to quote stuff you want to pass into a "system" > call. Of course, there is. Assuming you know what shell will interpret the arguments, that is. > In fact, it is not even guaranteed that calling "exec" will not > mesh up arguments or add or remove quoting. `exec' is not a Windows system call. Squeezing one OS into emulation of another should be expected to be problematic. > There are consequences: for example, call-process and its ilk don't work > reliably. You can't expect the arguments given to them to actually make > it unmolested to the argc/argv of the called program's "main". Only because the surrounding code expects a Posix-compliant set of functions and syscalls. It was not written with portability in mind from the ground up.