From mboxrd@z Thu Jan 1 00:00:00 1970 From: OSiUX Subject: Re: bash alias and history in code block (again) Date: Tue, 22 Apr 2014 14:57:16 -0300 Message-ID: <20140422175715.GB6093@localhost> References: <20140415123446.GA20512@localhost> <87ha5s45af.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8GpibOaaTibBMecb" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcewH-0007Ns-Dh for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 13:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcewD-00029y-4D for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 13:57:01 -0400 Received: from merlot.gcoop.coop ([67.208.113.123]:32781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcewC-00029q-UL for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 13:56:57 -0400 Received: from localhost (merlot [127.0.0.1]) (Authenticated sender: xuiso@osiux.com.ar) by merlot.gcoop.coop (Postfix) with ESMTPSA id 327A0148951 for ; Tue, 22 Apr 2014 14:57:23 -0300 (ART) Content-Disposition: inline In-Reply-To: <87ha5s45af.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --8GpibOaaTibBMecb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El jue, 17 abr 2014, Bastien dec=C3=ADa: > OSiUX 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 =3Dbash -i=3D 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] =3D> 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=3D"/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=3D"/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 --8GpibOaaTibBMecb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJTVq17AAoJELMIpnGSN9NsrUMP/R2J0j6GM/Wet8Rl9h7TvCEF Bde8oX+qsaZHmBAQBWoQJsveh5wjL30vDmE4+RPf9+KAWcRV52+3ux0qlwwTWHs7 sRuEExVK41xEyxmjNpTGnHwn5Qgt2PrQQ29Nhge18knAGTjlz6hR0jtAegYoumSv 5zJ0ydq9MVfxrK0VJ7bvVZVq5d/DduKwQkQUujitjVy4hvVc7Lrf3kpsFjsSolsQ +sDiyaxPSI9B9lcKKXlu68a4G0UXll9V27cRbvEVoOnhVmr0ANWX681DgXDM98Jr p/pF36IAc9hJYearvI7rVcRCtUZswIpEXlLk34kj5g7d10QPkrUJFNhr1wqbJfyT 4XVeKMzwW8Eabb7L6GpnwVf2f6ji3ZCy6VLZBYa3hoJOcmNgjpE1fVSzKS+f6PMD eVdaVNdWNuwHfYr8tRzjNoacAituyW6hX/16nQKq7pMZ3RWPRHlXnCrcBeM4uTht ShyGVBj9w0WA3pwLLfm0sJA4iZbFUEd8Du+l1iJAl9u76MP5FFMUM3xoKlncqOgE pCuAjvK6/6rIf+hQyKG1OxHST8rQ2QalUD8aZ/R0JX1fBtuzPRkFSrfYn27pXpg+ mUQPgKFclIzalLayDVwmD7+12vY9FbuOULBbQLKsO12Rqt7JmOxXpevyCQI63x8+ Py8aHXfHOm6gj3liakrc =p48f -----END PGP SIGNATURE----- --8GpibOaaTibBMecb--