emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] ob-shell: cmdline and stdin broken when used with TRAMP


From: Bruno Barbier
Subject: Re: [BUG] ob-shell: cmdline and stdin broken when used with TRAMP
Date: Sat, 18 Jun 2022 20:54:57 +0200

"Felix Freeman" via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:

> When using TRAMP, ob-shell's :cmdline and :stdin header options are
> broken on org-babel.
>

I can reproduce the problem (thanks for your nice MCE).

I'm using:
    Org mode version 9.5.4 (release_9.5.4-32-g82036c)
    GNU Emacs 29.0.50

    
>From what I understand, the function 'org-babel-sh-evaluate' relies on
'call-process'; and that function ignores file name handlers; as TRAMP
relies on those file name handlers, it just cannot do the right thing.

Using 'process-file' instead works for me.

See the attached patch.

I've also included a test, as the problem is reproducible with TRAMP
"/mock::" connection. But, that test will only work on GNU/Linux
systems.

Warning: that's my first attempt to write a patch, and I don't have
(yet) signed the copyright papers.


Bruno


Attachment: 0001-ob-shell-Use-process-file-when-stdin-or-cmdline.patch
Description: Patch for ob-shell: cmdline and stdin broken when used with TRAMP


reply via email to

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