emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Dynerman <emperordali@block-party.net>
To: emacs-orgmode@gnu.org
Subject: Specifying shells for remote ob-shell sessions?
Date: Thu, 24 Jun 2021 16:15:44 -0700	[thread overview]
Message-ID: <3D86861D-E962-4FDB-B520-374C883C9F1E@block-party.net> (raw)

Dear Org Mode Friends,

I’m having some trouble getting the shell I want to run on remote hosts in session ob-shell blocks - it seems that no matter what shell I specify, session blocks will always run /bin/sh. I’m not sure if this is an org or tramp configuration issue on my end, or a bug in org.

I’m pasting a snippet that reproduces the behavior in emacs -Q below. Does anyone have an inkling if this is a bug, or, alternatively, suggestions for how I can run remote ob-shell sessions with the shell of my choice?

Thank you,

#+BEGIN_SRC emacs-lisp                                                                                          
  (require 'ob-shell)                                                                                           

: GNU Emacs 27.2 (build 1, x86_64-apple-darwin17.7.0, Carbon Version 158 AppKit 1561.6)                         
:  of 2021-05-20                                                                                                

#+BEGIN_SRC emacs-lisp                                                                                          

: 9.4.4                                                                                                         

#+BEGIN_SRC zsh :dir /ssh:remote-host:/home/ubuntu                                                       
    echo $0

: zsh                                                                                                           

#+BEGIN_SRC zsh :dir /ssh:remote-host:/home/ubuntu :session foobar                                       
echo $0

|           |
| $ /bin/sh |

             reply	other threads:[~2021-06-24 23:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 23:15 David Dynerman [this message]
2021-06-25  5:45 ` Specifying shells for remote ob-shell sessions? Tim Cross
2021-06-25  7:18 ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D86861D-E962-4FDB-B520-374C883C9F1E@block-party.net \
    --to=emperordali@block-party.net \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).