unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: execute shell scripts by call-process in msys2 environment
Date: Wed, 12 Sep 2018 20:03:29 +0300	[thread overview]
Message-ID: <83worqlkbi.fsf@gnu.org> (raw)
In-Reply-To: <ce667f8e-e636-4927-88ea-374e9873c9ad@googlegroups.com> (holgar.sperr@gmail.com)

> Date: Wed, 12 Sep 2018 09:31:52 -0700 (PDT)
> From: holgar.sperr@gmail.com
> 
> C-x v v initializes a process: (call-process ...) which leads to an error.
> 
>       apply: Searching for program: No such file or directory, ci
> 
> Doing M-! (shell-command) finds the script 'ci' of the msys2 installation
> and returns the same output as called from mingw64 shell.
> 
> ('exec-path' contains the relevant directory.)

OK, thanks.  On Unix, call-process is capable of running shell
scripts, but Windows doesn't know how to do that based on the #!
signature of the script.  So it doesn't work out of the box.

However, you could write a simple 'ci.bat' batch file that executes
the same command as the 'ci' the shell script, then it should work
without the need to involve Bash.



      reply	other threads:[~2018-09-12 17:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-12  9:32 execute shell scripts by call-process in msys2 environment holgar.sperr
2018-09-12 14:18 ` Eli Zaretskii
     [not found] ` <mailman.675.1536761912.1284.help-gnu-emacs@gnu.org>
2018-09-12 14:57   ` holgar.sperr
2018-09-12 15:52     ` Eli Zaretskii
2018-09-12 16:45       ` Andy Moreton
2018-09-12 17:10         ` Eli Zaretskii
     [not found]         ` <mailman.691.1536772269.1284.help-gnu-emacs@gnu.org>
2018-09-13  8:57           ` holgar.sperr
     [not found]     ` <mailman.683.1536767585.1284.help-gnu-emacs@gnu.org>
2018-09-12 16:31       ` holgar.sperr
2018-09-12 17:03         ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83worqlkbi.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).