You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some investigation and I think this is a tramp feature/bug. The issue happens here: tramp-sh.el
tramp has something called heredoc, which is used to support arguments that exceed command line length.
However, when it thinks it need heredoc it changes stdin (0) to /dev/ttyhere unconditionally, resulting in mismatched fd 0 vs fd 1 and 2.
I have only started learning Emacs like a few weeks ago, so I have no idea it doing this is a good or bad thing.
Thankfully there is a simple workaround. When it determines if it should enter heredoc mode, it checks is the program argument is surrounded by single quotes, so you can do something like this:
Issue
If you start vterm from a remote org-mode document, then it spawns a remote shell at that location (which is fantastic!)
However, if you try to access a
tmuxsession via vterm, then it fails with the error:You can get around this however by spawning vterm locally, and then ssh-ing into the machine, and then running
tmux, which will work successfullySteps to reproduce
vtermtmux new-session -t testSteps to work around
vtermtmux new-session -t testIs it to do with the SSH_CONNECTION being the same one that Tramp uses?
The text was updated successfully, but these errors were encountered: