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

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

Re: Program working with shell-command but not call-process


From: Michael Heerdegen
Subject: Re: Program working with shell-command but not call-process
Date: Fri, 04 Jul 2014 00:51:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

John Mastro <john.b.mastro@gmail.com> writes:

> 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

Don't know anything about this, sorry.  But considering the doc of
`call-process` - when you don't get a lisp error, Emacs found and
actually called git, and git exited with return value 53.

Dunno what makes the difference when you use a shell.

Michael.




reply via email to

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