emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org babel execute shell in sh?
@ 2012-03-07 17:25 Panruo Wu
  2012-03-08  0:22 ` Nick Dokos
  2012-03-08  4:24 ` Tom Regner
  0 siblings, 2 replies; 10+ messages in thread
From: Panruo Wu @ 2012-03-07 17:25 UTC (permalink / raw)
  To: emacs-orgmode

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

Dear list,

#+begin_src sh
for np in {1..32}
do
    echo $np
done
#+end_src

when executing, the output only shows
{1..32}
which is clearly not I want..

After some investigation, I found that orgmode
uses "sh" that cannot understand the for loop above.

My question is, how can I suggest orgmode to use
"bash" to execute shell script?

I tried :shebang #!/bin/bash but it does not work

Thanks,
robb

[-- Attachment #2: Type: text/html, Size: 683 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-03-12 19:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-07 17:25 org babel execute shell in sh? Panruo Wu
2012-03-08  0:22 ` Nick Dokos
2012-03-08  4:24 ` Tom Regner
2012-03-09 20:34   ` Panruo Wu
2012-03-10  4:21   ` Nick Dokos
2012-03-10  6:33     ` Tom Regner
2012-03-12  4:34       ` Eric Schulte
2012-03-12 16:38         ` Tom Regner
2012-03-12 17:29           ` Eric Schulte
2012-03-12 19:10             ` 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).