emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rudi C <rudiwillalwaysloveyou@gmail.com>
To: Kyle Meyer <kyle@kyleam.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] babel runs bash instead of zsh when sessions are used
Date: Sat, 22 Aug 2020 17:40:53 +0430	[thread overview]
Message-ID: <CAE9z9A1v=v6_7aKiBnciuxJkg0b49OxkPZk=qAAhU5Hhrx03Ow@mail.gmail.com> (raw)
In-Reply-To: <87ft8fwcc2.fsf@kyleam.com>

[-- Attachment #1: Type: text/plain, Size: 4083 bytes --]

I tried using emacs -Q and org 9.4, and you're right, this bug is
nonexistent there. I am using Doom, so that's where the bug is coming from
most probably. Unfortunately, things don't work without that bug either.
The evaluation hangs indefinitely. I have used C-g to cancel them and take
a look at the session buffer:

```
echo $HOME $0
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org
❯ echo $HOME $0echo $HOME $0
echo 'org_babel_sh_eoe'
echo 'org_babel_sh_eoe'
]2;echo $HOME $0 ]1;echo /Users/evar /usr/local/bin/zsh
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org
❯ echo 'org_babel_sh_eoe'echo 'org_babel_sh_eoe'
]2;echo 'org_babel_sh_eoe' ]1;echo org_babel_sh_eoe
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org
~/cellar/notes/org master
~/cellar/notes/org master*
❯ echo $HOME $0
echo $echo 'org_babel_sh_eoe'
HOME $0
]2;echo $HOME $0 ]1;echo /Users/evar /usr/local/bin/zsh
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ echo 'org_babel_sh_eoe'echo 'org_babel_sh_eoe'
]2;echo 'org_babel_sh_eoe' ]1;echo org_babel_sh_eoe
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ echo $HOME $0
echo $echo 'org_babel_sh_eoe'
HOME $0
]2;echo $HOME $0 ]1;echo /Users/evar /usr/local/bin/zsh
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ echo 'org_babel_sh_eoe'echo 'org_babel_sh_eoe'
]2;echo 'org_babel_sh_eoe' ]1;echo org_babel_sh_eoe
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
~/cellar/notes/org master*
❯

]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯

]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯

]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯

]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ echo hi
echo
]2;echo hi ]1;echo hi
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ echo jk
echo
]2;echo jk ]1;echo jk
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ echo $HOME $0
echo $echo 'org_babel_sh_eoe'
HOME $0
]2;echo $HOME $0 ]1;echo /Users/evar /usr/local/bin/zsh
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ echo 'org_babel_sh_eoe'echo 'org_babel_sh_eoe'
]2;echo 'org_babel_sh_eoe' ]1;echo org_babel_sh_eoe
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org master*
❯ exit
exit
]2;exit ]1;exit
Process shell finished
echo $HOME $0
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org
❯ echo $echo 'org_babel_sh_eoe'
HOME $0
]2;echo $HOME $0 ]1;echo /Users/evar /usr/local/bin/zsh
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org
❯ echo 'org_babel_sh_eoe'echo 'org_babel_sh_eoe'
]2;echo 'org_babel_sh_eoe' ]1;echo org_babel_sh_eoe
]2;evar@Fereidoons-MacBook-Pro: ~/cellar/notes/org ]1;..lar/notes/org
~/cellar/notes/org
~/cellar/notes/org master
~/cellar/notes/org master*
~/cellar/notes/org master*
❯
```

On Sat, Aug 22, 2020 at 8:39 AM Kyle Meyer <kyle@kyleam.com> wrote:

> Rudi C writes:
>
> > #+BEGIN_SRC zsh :session z1
> > echo $HOME $0
> > #+END_SRC
> >
> > #+RESULTS:
> > : /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.
>

[-- Attachment #2: Type: text/html, Size: 4931 bytes --]

  reply	other threads:[~2020-08-22 13:12 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 [this message]
2020-08-24 16:13   ` Nick Dokos
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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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='CAE9z9A1v=v6_7aKiBnciuxJkg0b49OxkPZk=qAAhU5Hhrx03Ow@mail.gmail.com' \
    --to=rudiwillalwaysloveyou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kyle@kyleam.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).