From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.os.cygwin,gmane.emacs.help Subject: Re: Why call-process removes '{' and '}' chars from arguments??? Date: Fri, 04 Jun 2010 04:56:28 -0400 Message-ID: References: <83wruhru5j.fsf@gnu.org> <4C07C495.7040709@cygwin.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1275641807 27005 80.91.229.12 (4 Jun 2010 08:56:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2010 08:56:47 +0000 (UTC) To: help-gnu-emacs@gnu.org, cygwin@cygwin.com Original-X-From: cygwin-return-163211-goc-cygwin=m.gmane.org@cygwin.com Fri Jun 04 10:56:46 2010 connect(): No such file or directory Return-path: Envelope-to: goc-cygwin@lo.gmane.org Original-Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1OKShj-0007A2-EJ for goc-cygwin@lo.gmane.org; Fri, 04 Jun 2010 10:56:39 +0200 Original-Received: (qmail 19747 invoked by alias); 4 Jun 2010 08:56:35 -0000 Original-Received: (qmail 19737 invoked by uid 22791); 4 Jun 2010 08:56:34 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Original-Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Jun 2010 08:56:30 +0000 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OKShY-0005pd-4K; Fri, 04 Jun 2010 04:56:28 -0400 In-reply-to: (message from Oleksandr Gavenko on Thu, 03 Jun 2010 23:33:44 +0300) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Xref: news.gmane.org gmane.os.cygwin:119277 gmane.emacs.help:73821 Archived-At: > From: Oleksandr Gavenko > Date: Thu, 03 Jun 2010 23:33:44 +0300 > Cc: cygwin@cygwin.com > > %* in .bat file not proper work - it strip all chars after > first new line occurrence. > > I think in Windows there are no anything scriptable with > "$*" like in POSIX sh. Yes, there is: it's %*. The problem is that the Windows shells do not support command lines with embedded newlines at all. > To workaround this I create executable > which linked with Cygwin runtime and as in BusyBox > to 'execvp' passed base name as command and all args without > changes. Cygwin 'execvp' first search for 'prog' then > for 'prog.exe' so trick worked! > > So I switch from simple .bat wrapper to > special executable. To enable another Cygwin script 'foo' > for Emacs I just copy existing executable: > > $ cp hg.exe foo.exe Mixing the native Windows build of Emacs with Cygwin is asking for trouble. I expect you to see more surprises down the line. I highly recommend to install the Cygwin build of Emacs and use that instead.