emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: stardiviner <numbchild@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Let ob-shell support specify shell to execute shell code?
Date: Sun, 01 Apr 2018 14:02:50 +0800	[thread overview]
Message-ID: <87zi2ncvlh.fsf@gmail.com> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I want to specify Shell for ob-shell.

Like this src block:

#+begin_src shell
echo $SHELL
#+end_src

I found ob-shell has header argument `:shebang`. But it only is used for tangled script.

I hope ob-shell can support specify shell in header argument like this:

#+begin_src shell :shell "bash"
echo $SHELL
#+end_src

Because some code is specified to Bash, or Zsh or other Shells.

And I found ob-shell.el has variable `org-babel-shell-names`. But seems
it is not used at my case.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAlrAdgsACgkQG13xyVro
msNeowgApFNh2uVJDjym+MZTk5oWy6K2dJfquBNXiGBNISarhfl4w+JRVHebubu+
BRmwpwgsa2YNF7sVOO7bbJPNEIykOOvmyBQDVM7RA2VWKWxvmmhBerisMsYWD4OD
6OBSoVKA+DGqQmrCd05YHiO2vLcIfuy+34lTAQsbK/+iHH1bfZmER5n/BvywVaqg
Ba44Z2343kfgQ6n/h19K1HKF6bL/FpQZ7L4NWIJGQu81WjxXIpEoT/iPX/duisii
75GJWsVhTA3IldNc+1nakHYYMYN/O5fkEavXsnCmtQEJlk2le0MIxbMHgEz3/vjG
0NxYLRKMllz/A+3so4/M7CV9PLXl7w==
=alpp
-----END PGP SIGNATURE-----

                 reply	other threads:[~2018-04-01  6:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87zi2ncvlh.fsf@gmail.com \
    --to=numbchild@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).