From mboxrd@z Thu Jan 1 00:00:00 1970 From: OSiUX Subject: bash alias and history in code block (again) Date: Tue, 15 Apr 2014 09:34:46 -0300 Message-ID: <20140415123446.GA20512@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa2ZX-0000Lu-5p for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 08:34:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wa2ZT-0004JT-5e for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 08:34:43 -0400 Received: from merlot.gcoop.coop ([67.208.113.123]:58991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wa2ZS-0004JJ-W8 for emacs-orgmode@gnu.org; Tue, 15 Apr 2014 08:34:39 -0400 Received: from localhost (merlot [127.0.0.1]) (Authenticated sender: xuiso@osiux.com.ar) by merlot.gcoop.coop (Postfix) with ESMTPSA id 0A0EA148938 for ; Tue, 15 Apr 2014 09:34:52 -0300 (ART) Content-Disposition: inline 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: Org-mode --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJTTSdlAAoJELMIpnGSN9NsmJ0P/1sdMvJYO22lN5TvhjZSO06n vMW/LM3b7hLeaQC0CIMi4Stwh82P8sNIa/ghTLvEPZ8gjrIY20qpfFKFZ+MvdtIv 7hyO3xGy/+gwde7W9PYjcEzULAlXAQyEzgp1S9REkzVJwaM3DOSvjPhxzRBW/SgH JsThhFi7MS4YoYqG6cvkl6EgalnZXI0F6B1NDPLxwQaDM7K1Migpcs2njzg8HX2T +Pj3heURS02Oguh/lHiCb03wQJw68XPMZHi/H1KH2r/nzrzAWvjy+gxTGTXCgm3j J5b6YKsSmqCo9ZZzYVu96lfE1EVEWqyiA6AZzdIEFY3P054ZxriMArm8/3UgvMuq l+/QDxKwKw2noyvgibmb85Ryo7XV0JGuUzKGtqmdDFMwa7V1wVvWv13Ip8e7zroi RyJvqrnHDkPzviYJ0+WxpXWDZmO2MWcuhU99LmB9qYqpOakoL2QXWl2cis70SygQ HQAADDgPBx11JqvxNvYWLRDDbpiIHr0WPecLi33LU67gdR6XxE0aYfwqgNH9BcXo xTV6nTqFCG2q8+HvOLqIlUbFuU/jvS5awXRgAGQdBOHOokuUuuBaibY9imKyx/q0 lY0mm3NSeHV4E8BM2Ln0mcONPi07AOBgnFLqTJMLE1D4YvhwImecU8SUkd67lP8w 9DbX8iRpfwBgXSPGqA7N =PQC1 -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--