* 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