When using TRAMP, ob-shell's :cmdline and :stdin header options are broken on org-babel. I've noticed that when those options are present, it takes other route on ob-shell.el, but I lack the proper background to fix or debug it further. Probably cmdline is more complicated to get working right, but stdin seems to do most things just fine (it creates the file within the remote part) but isn't able to read it when needed. I'm attaching: - A file to test the functionality: test-tramp.org - The backtrace: backtrace.el - Emacs generated "current state": current-state.el Emacs : GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-27 Package: Org mode version 9.5.4 (release_9.5.4-521-g1105da.dirty @ /home/me/src/org-mode/lisp/) Felix Freeman