[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] bash alias and history in code block (again)
From: |
OSiUX |
Subject: |
[O] bash alias and history in code block (again) |
Date: |
Tue, 15 Apr 2014 09:34:46 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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 :-(
My Org-mode version:
8.2.5h release_8.2.5h-660-gef207f
Looking the source:
b896bd4 2014-02-09 20:12 schulte.eric add :cmdline support to shell code
blocks
5f0ca0e 2014-01-31 17:02:03 +0100 theonewiththeevillook Renaming of ob-sh to
ob-shell: various fixes
1a9a666 2014-01-21 09:52 schulte.eric mention ob-sh renamed to ob-shell in
ORG-NEWS
80754a8 2014-01-18 10:26 schulte.eric updated names in test-ob-shell
2ebae7b 2014-01-18 10:25 schulte.eric renamed test file for shell code blocks
fb09863 2013-12-13 16:04 schulte.eric more shell names
b319475 2013-12-13 10:03 schulte.eric fix tests with the renamed ob-shell.el
583e7ab 2013-12-13 09:54 schulte.eric rename ob-sh to ob-shell
7a6c0e3 2013-12-13 09:52 schulte.eric multiple code block types for multiple
shells
d286d81 2013-12-13 09:18 schulte.eric Revert "change default sh code block
shell to bash"
1f498c9 2013-11-23 09:14 schulte.eric change default sh code block shell to
bash
I change my ~/.emacs
(setq org-babel-sh-command "bash")
... and try the new :cmdline parameter:
#+BEGIN_SRC sh :cmdline "-i" :session :results output
history | wc -l
alias | wc -l
#+END_SRC
#+RESULTS:
: 0
: 0
*How to use alias and bash builtin functions?*
thanks!
--
::
Osiris Alejandro Gomez (OSiUX) address@hidden
DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
http://www.osiux.com.ar http://www.altermundi.net
signature.asc
Description: Digital signature
- [O] bash alias and history in code block (again),
OSiUX <=