From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Program working with shell-command but not call-process Date: Thu, 3 Jul 2014 09:46:43 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1404406091 24102 80.91.229.3 (3 Jul 2014 16:48:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2014 16:48:11 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 03 18:48:05 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2kAw-0003Gd-MG for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 18:47:58 +0200 Original-Received: from localhost ([::1]:60855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2kAw-0007Zp-9r for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Jul 2014 12:47:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2kAI-0007CX-NY for help-gnu-emacs@gnu.org; Thu, 03 Jul 2014 12:47:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2kA5-0005j2-81 for help-gnu-emacs@gnu.org; Thu, 03 Jul 2014 12:47:18 -0400 Original-Received: from mail-oa0-x22e.google.com ([2607:f8b0:4003:c02::22e]:63297) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2kA5-0005i6-0m for help-gnu-emacs@gnu.org; Thu, 03 Jul 2014 12:47:05 -0400 Original-Received: by mail-oa0-f46.google.com with SMTP id m1so524032oag.5 for ; Thu, 03 Jul 2014 09:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=bEsAN5gp37Op4lhfFJiu8pgY9jXDYcov7Oyw3QLCSE8=; b=N/MKiGx6QZ5qzDQy1Ahruv2ylU+j/3uR7+ZXHalykUO5imWbiEliQWgngGJs6zSCJl knTXE6VnILnVocmJdDb4X0WqhXfy5SwuaRfR0WwQSYb0hm2p2WpKc/rpZVOf0DuJiGBd zvOJ8iPIGmEJ/cqOd+kcGhWC4oRzRUUuF2tidoKZucYYTAqpoloHzg0/LcULXg+Jc0R8 tnGbP5C6SgByVa39wt0bOt+pe7tKvFvz2UwIUYKdMJM2u5QN950euS1RXB2lj8vPTfcm nV6JXjOYTJd2HCAceODFUEW7Ovvi0QkmcOi5fp4QJ5dMhfy5LlpKpjnD3cuRoyqxogOW x3XQ== X-Received: by 10.60.78.163 with SMTP id c3mr5993733oex.43.1404406023841; Thu, 03 Jul 2014 09:47:03 -0700 (PDT) Original-Received: by 10.76.172.9 with HTTP; Thu, 3 Jul 2014 09:46:43 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c02::22e X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98531 Archived-At: 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