From: Narendra Joshi <narendraj9@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Org-babel bash session with non-standard prompt
Date: Fri, 08 Jun 2018 19:39:43 +0530 [thread overview]
Message-ID: <87602t9xp4.fsf@gmail.com> (raw)
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
reply other threads:[~2018-06-08 14:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87602t9xp4.fsf@gmail.com \
--to=narendraj9@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 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.