emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: OSiUX <xuiso@osiux.com.ar>
To: emacs-orgmode@gnu.org
Subject: Re: bash alias and history in code block (again)
Date: Tue, 22 Apr 2014 14:57:16 -0300	[thread overview]
Message-ID: <20140422175715.GB6093@localhost> (raw)
In-Reply-To: <87ha5s45af.fsf@bzg.ath.cx>

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

El jue, 17 abr 2014, Bastien decía:

> OSiUX <xuiso@osiux.com.ar> writes:
>
> >     #+BEGIN_SRC sh :cmdline "-i" :session :results output
>
> From a quick look, this should rather be:
>
> #+BEGIN_SRC sh :cmdline -i :session session_name :results output
>
> Can you test this?

Don't Work :-(

** DONE test =bash -i=
   CLOSED: [2014-04-22 mar 14:56]
   :LOGBOOK:
   - State "DONE"       from "NEXT"       [2014-04-22 mar 14:56]
   CLOCK: [2014-04-22 mar 14:51]--[2014-04-22 mar 14:54] =>  0:03
   :END:

   #+BEGIN_SRC sh :cmdline -i :session xyz :results output
     export | grep -i shell
     alias | wc -l
     history | wc -l
   #+END_SRC

   #+RESULTS:
   : declare -x SHELL="/bin/bash"
   : 0
   : 0

   #+BEGIN_SRC sh :session :results output
     export | grep -i shell
     alias | wc -l
     history | wc -l
   #+END_SRC

   #+RESULTS:
   : export SHELL="/bin/bash"
   : 0
   : 0

--

::

  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-22 17:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 12:34 OSiUX
2014-04-17 10:30 ` Bastien
2014-04-22 17:57   ` OSiUX [this message]
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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=20140422175715.GB6093@localhost \
    --to=xuiso@osiux.com.ar \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: bash alias and history in code block (again)' \
    /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

Code repositories for project(s) associated with this inbox:

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).