emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG] babel runs bash instead of zsh when sessions are used
Date: Mon, 24 Aug 2020 12:13:34 -0400	[thread overview]
Message-ID: <87imd86mz5.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 87ft8fwcc2.fsf@kyleam.com

Kyle Meyer <kyle@kyleam.com> writes:

> Rudi C writes:
>> #+BEGIN_SRC zsh :session z1
>> echo $HOME $0
>> #+END_SRC
>> : /Users/evar /bin/bash
> What version of Org are you using?
> I tried with both the latest release (9.3.7) and the current master
> branch (220f2b0d9), using default configuration aside from
>     (org-babel-do-load-languages
>      'org-babel-load-languages
>      '((shell . t)))
> I see "/usr/bin/zsh" in both cases.

I was able to reproduce it (with ksh, rather than zsh) on Org mode version 9.3.7 (release_9.3.7-705-gea9463 @ /home/nick/elisp/org-mode/lisp/).

--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC ksh :session z1
echo $HOME $0 $(which $0)

: /home/nick /bin/bash /bin/bash

echo $HOME $0 $(which $0)

: /home/nick ksh /usr/bin/ksh

--8<---------------cut here---------------end--------------->8---


"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler

  parent reply	other threads:[~2020-08-24 16:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19 16:01 [BUG] babel runs bash instead of zsh when sessions are used Rudi C
2020-08-22  4:09 ` Kyle Meyer
2020-08-22 13:10   ` Rudi C
2020-08-24 16:13   ` Nick Dokos [this message]
2020-08-25  0:42     ` Kyle Meyer

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=87imd86mz5.fsf@alphaville.usersys.redhat.com \
    --to=ndokos@gmail.com \
    --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).