From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: run bash sessions without config files Date: Thu, 03 Aug 2017 17:09:54 -0500 Message-ID: <87k22ks3pp.fsf@alphapapa.net> References: <1501689196.1375659.1060951736.32EAA9C0@webmail.messagingengine.com> <1501792294.3632450.1062453360.313973F7@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddOJz-0003Kw-MT for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 18:10:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddOJw-0001FB-Kc for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 18:10:23 -0400 Received: from [195.159.176.226] (port=42912 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddOJw-0001Cd-F9 for emacs-orgmode@gnu.org; Thu, 03 Aug 2017 18:10:20 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1ddOJZ-0007fx-S6 for emacs-orgmode@gnu.org; Fri, 04 Aug 2017 00:09:57 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Tyler Smith 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...