From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: bash alias and history in code block Date: Fri, 06 Dec 2013 20:23:12 +0100 Message-ID: <864n6lokbj.fsf@somewhere.org> References: <20131206175855.GA32108@localhost> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org OSiUX wrote: > How to use alias and bash builtin functions? > > #+BEGIN_SRC sh :session :results output > echo $SHELL > echo $HOME > source ~/.bashrc > alias | wc > env | grep HISTTIMEFORMAT > history | wc > #+END_SRC > > #+RESULTS: > : /bin/bash > : /home/osiris > : 0 0 0 > : HISTTIMEFORMAT=%Y-%m-%d %H:%M > : 0 0 0 Just throwing an idea (as I don't know enough about that): play with the variable `org-babel-sh-command' (default: "bash") and add options such as "--login" or "--interactive" (or stuff like that)? Best regards, Seb -- Sebastien Vauban