all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Program working with shell-command but not call-process
@ 2014-07-03 16:46 John Mastro
  2014-07-03 22:51 ` Michael Heerdegen
  0 siblings, 1 reply; 4+ messages in thread
From: John Mastro @ 2014-07-03 16:46 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Does anyone know what situation would result in this working:

    (shell-command-to-string "git --version")
    ;=> it returns "git version 2.0.1"

But not this:

    (with-output-to-string
      (call-process "git" nil standard-output nil "--version"))
      ;=> it returns ""
      ;=> `call-process' alone returns 53

This git is built and installed from source on Cygwin. It works fine
from the shell but not via `call-process', which means it doesn't work
with `magit'.

It's in my path (both $PATH and `exec-path'), and `executable-find'
finds it without problem at c:/usr/local/bin/git.exe.

The git that's availablefor install via Cygwin (quite old, v1.7.9),
succeeds with both the calls above. It's still installed at
c:/bin/git.exe.

Thanks,

John


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-04 15:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4812.1404406058.1147.help-gnu-emacs@gnu.org>
2014-07-04 10:16 ` Program working with shell-command but not call-process Joost Kremers
2014-07-04 15:21   ` Michael Heerdegen
2014-07-03 16:46 John Mastro
2014-07-03 22:51 ` Michael Heerdegen

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.