help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: execute shell scripts by call-process in msys2 environment


From: Eli Zaretskii
Subject: Re: execute shell scripts by call-process in msys2 environment
Date: Wed, 12 Sep 2018 20:03:29 +0300

> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]