From: Adam Porter <adam@alphapapa.net>
To: emacs-orgmode@gnu.org
Subject: Re: run bash sessions without config files
Date: Thu, 03 Aug 2017 17:09:54 -0500 [thread overview]
Message-ID: <87k22ks3pp.fsf@alphapapa.net> (raw)
In-Reply-To: 1501792294.3632450.1062453360.313973F7@webmail.messagingengine.com
Tyler Smith <tyler@plantarum.ca> writes:
> On Wed, Aug 2, 2017, at 11:53 AM, Tyler Smith wrote:
>>
>> Is it possible to configure org-babel to ignore any customization files,
>> such as .emacs.d/init_bash.el and .bashrc?
>>
> After some digging around, it looks like this isn't possible.
> ~org-babel~ starts shell sessions via the standard function ~(shell)~.
> Loading ~init_bash.el~ is hard-coded into this function, so there's no
> user-visible way to direct Emacs not to read it for org-mode code
> blocks, while still using it in other contexts.
Could you run the code in the source block within "bash --noprofile
--norc"? You could use "-c" to pass the rest of the commands as a
string, or "-s" to pass to STDIN with a heredoc. I don't know if it
will work, but it might...
prev parent reply other threads:[~2017-08-03 22:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 15:53 run bash sessions without config files Tyler Smith
2017-08-03 20:31 ` Tyler Smith
2017-08-03 22:09 ` Adam Porter [this message]
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=87k22ks3pp.fsf@alphapapa.net \
--to=adam@alphapapa.net \
--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 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).