From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: bash alias and history in code block (again) Date: Tue, 22 Apr 2014 14:43:35 -0400 Message-ID: <87bnvtcii0.fsf@alphaville.bos.redhat.com> References: <20140415123446.GA20512@localhost> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcffe-0005qX-TJ for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 14:44:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcffZ-0000Sd-NV for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 14:43:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:49062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcffZ-0000SW-Gz for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 14:43:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WcffY-0006v0-3z for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 20:43:48 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 20:43:48 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 20:43:48 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org OSiUX writes: > Hi, in the past I ask *How to use alias and bash builtin functions?* > > http://lists.gnu.org/archive/html/emacs-orgmode/2013-12/msg00205.html > > The solution: > > (setq org-babel-sh-command "bash -i") > > But now don't work anymore :-( > Works for me: (setq org-babel-sh-command "bash -i") "bash -i" --8<---------------cut here---------------start------------->8--- #+BEGIN_SRC sh :results output history | wc -l alias | wc -l #+END_SRC #+RESULTS: : 1000 : 6 --8<---------------cut here---------------end--------------->8--- Org-mode version 8.2.6 (release_8.2.6-901-g91da1b @ /home/nick/elisp/org-mode/lisp/) > My Org-mode version: > > 8.2.5h release_8.2.5h-660-gef207f > -- Nick