emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] bash alias and history in code block (again)


From: Nick Dokos
Subject: Re: [O] bash alias and history in code block (again)
Date: Tue, 22 Apr 2014 14:43:35 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

OSiUX <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]