all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bash alias and history in code block (again)
@ 2014-04-15 12:34 OSiUX
  2014-04-17 10:30 ` Bastien
  2014-04-22 18:43 ` Nick Dokos
  0 siblings, 2 replies; 4+ messages in thread
From: OSiUX @ 2014-04-15 12:34 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 1672 bytes --]

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) osiux@osiux.com.ar
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-22 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15 12:34 bash alias and history in code block (again) OSiUX
2014-04-17 10:30 ` Bastien
2014-04-22 17:57   ` OSiUX
2014-04-22 18:43 ` Nick Dokos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.