* 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
* Re: bash alias and history in code block (again) 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 1 sibling, 1 reply; 4+ messages in thread From: Bastien @ 2014-04-17 10:30 UTC (permalink / raw) To: OSiUX; +Cc: Org-mode 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? -- Bastien ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bash alias and history in code block (again) 2014-04-17 10:30 ` Bastien @ 2014-04-22 17:57 ` OSiUX 0 siblings, 0 replies; 4+ messages in thread From: OSiUX @ 2014-04-22 17:57 UTC (permalink / raw) To: emacs-orgmode [-- 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 --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bash alias and history in code block (again) 2014-04-15 12:34 bash alias and history in code block (again) OSiUX 2014-04-17 10:30 ` Bastien @ 2014-04-22 18:43 ` Nick Dokos 1 sibling, 0 replies; 4+ messages in thread From: Nick Dokos @ 2014-04-22 18:43 UTC (permalink / raw) To: emacs-orgmode OSiUX <xuiso@osiux.com.ar> writes: > 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 :-( > Works for me: (setq org-babel-sh-command "bash -i") "bash -i" --8<---------------cut here---------------start------------->8--- #+BEGIN_SRC sh :results output history | wc -l alias | wc -l #+END_SRC #+RESULTS: : 1000 : 6 --8<---------------cut here---------------end--------------->8--- Org-mode version 8.2.6 (release_8.2.6-901-g91da1b @ /home/nick/elisp/org-mode/lisp/) > My Org-mode version: > > 8.2.5h release_8.2.5h-660-gef207f > -- Nick ^ 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 public 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).