all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: OSiUX <xuiso@osiux.com.ar>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: bash alias and history in code block (again)
Date: Tue, 15 Apr 2014 09:34:46 -0300	[thread overview]
Message-ID: <20140415123446.GA20512@localhost> (raw)

[-- 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 --]

             reply	other threads:[~2014-04-15 12:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 12:34 OSiUX [this message]
2014-04-17 10:30 ` bash alias and history in code block (again) Bastien
2014-04-22 17:57   ` OSiUX
2014-04-22 18:43 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140415123446.GA20512@localhost \
    --to=xuiso@osiux.com.ar \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.