all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org, cygwin@cygwin.com
Subject: Re: Why call-process removes '{' and '}' chars from arguments???
Date: Fri, 04 Jun 2010 04:56:28 -0400	[thread overview]
Message-ID: <E1OKShY-0005pd-4K@fencepost.gnu.org> (raw)
In-Reply-To: <hu93ji$6d7$1@dough.gmane.org> (message from Oleksandr Gavenko on	Thu, 03 Jun 2010 23:33:44 +0300)

> From: Oleksandr Gavenko <gavenkoa@gmail.com>
> 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.


      reply	other threads:[~2010-06-04  8:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 20:40 Why call-process removes '{' and '}' chars from arguments??? Oleksandr Gavenko
2010-06-02 21:39 ` Eli Zaretskii
2010-06-03  7:46   ` Oleksandr Gavenko
2010-06-03 15:04     ` Larry Hall (Cygwin)
2010-06-03 20:33       ` Oleksandr Gavenko
2010-06-04  8:56         ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1OKShY-0005pd-4K@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=cygwin@cygwin.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.