From mboxrd@z Thu Jan 1 00:00:00 1970 From: Narendra Joshi Subject: Org-babel bash session with non-standard prompt Date: Fri, 08 Jun 2018 19:39:43 +0530 Message-ID: <87602t9xp4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fRI5Q-0005Vn-BL for emacs-orgmode@gnu.org; Fri, 08 Jun 2018 10:09:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fRI5N-0006A7-Iv for emacs-orgmode@gnu.org; Fri, 08 Jun 2018 10:09:52 -0400 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:39007) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fRI5N-00069h-CB for emacs-orgmode@gnu.org; Fri, 08 Jun 2018 10:09:49 -0400 Received: by mail-pf0-x236.google.com with SMTP id r11-v6so6709744pfl.6 for ; Fri, 08 Jun 2018 07:09:49 -0700 (PDT) Received: from vicarie ([106.51.25.61]) by smtp.gmail.com with ESMTPSA id g13-v6sm96622992pfm.67.2018.06.08.07.09.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jun 2018 07:09:46 -0700 (PDT) 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 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