From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Truskov Subject: [PATCH] ob-C.el: Fix command to perform on remote host Date: Mon, 17 Apr 2017 13:28:45 +0300 Message-ID: <87d1cbiazm.fsf@Ark19.i-did-not-set--mail-host-address--so-tickle-me> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d03tt-0005Ae-4D for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 06:28:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d03tq-0007xo-0g for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 06:28:53 -0400 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:32956) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d03tp-0007wQ-Q6 for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 06:28:49 -0400 Received: by mail-lf0-x244.google.com with SMTP id 88so4508777lfr.0 for ; Mon, 17 Apr 2017 03:28:49 -0700 (PDT) Received: from Ark19 (128-72-62-152.broadband.corbina.ru. [128.72.62.152]) by smtp.gmail.com with ESMTPSA id u194sm1911360lff.48.2017.04.17.03.28.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Apr 2017 03:28:46 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Date: Mon, 17 Apr 2017 12:45:39 +0300 /host:/tmp/C-bin/tempfilename.exe". Processing name of binary file >From 1525efb65438f006be742b18d27804bf8409feae Mon Sep 17 00:00:00 2001 * lisp/ob-C.el (org-babel-C-execute): Made sure name of compiled program is converted to local representation before sending it to the shell on remote host. The problem was when one would try to evaluate C source code block in the file on remote host. Compilation would go normally, then evaluation will fail with error like "/bin/sh: unable to find file prevents that. TINYCHANGE --- lisp/ob-C.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-C.el b/lisp/ob-C.el index 795bcb2..e54e174 100644 --- a/lisp/ob-C.el +++ b/lisp/ob-C.el @@ -161,7 +161,7 @@ or `org-babel-execute:C++' or `org-babel-execute:D'." (org-babel-eval (pcase org-babel-c-variant ((or `c `cpp) - (concat tmp-bin-file cmdline)) + (concat (org-babel-process-file-name tmp-bin-file) cmdline)) (`d (format "%s %s %s %s" org-babel-D-compiler -- 2.7.4