* Org-babel bash session with non-standard prompt
@ 2018-06-08 14:09 Narendra Joshi
0 siblings, 0 replies; only message in thread
From: Narendra Joshi @ 2018-06-08 14:09 UTC (permalink / raw)
To: emacs-orgmode
Hi,
If the value for PS1 variable is set to something that doesn't end with
a `$` or `#`, org-babel hangs while using a fixed :session.
To overcome this, I can do the following at the start of a sh org-babel
session:
#+begin_src bash :session s :results verbatim drawer
export PS1='$ '
ls -lah
#+end_src
And this works ^.
I would like to know if I can somehow pass the environment variable
to the shell that org-babel starts for the session. I don't want to add
it to a snippet and do not want to type it every time.
Any help would be greatly appreciated.
Thanks,
--
Narendra Joshi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-08 14:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-08 14:09 Org-babel bash session with non-standard prompt Narendra Joshi
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.