From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [babel] Executing sh-code Date: Wed, 02 Dec 2009 15:55:11 +0100 Message-ID: <87r5rdzar4.fsf@mundaneum.com> References: <87k4xey99s.fsf@mundaneum.com> <200911271900.08393.torsten.wagner@googlemail.com> <87ws1cgsd6.fsf@mundaneum.com> <877htb4uow.fsf@stats.ox.ac.uk> <87638tnivd.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: > S=C3=A9bastien Vauban writes: >> >> What's the impact of specifying "sh" or "bash" for the snippet? > > While "sh" blocks should work "bash" blocks will not be recognized. In > org-babel "sh" doesn't explicitly mean the "sh" command, but rather means > 'run shell' which will default to whatever shell you have configured. I wonder if it wouldn't be beneficial to make such a feature explicit. I th= ink the right shell environment cannot be guessed at runtime. Am I right? Let's imagine two use cases: 1. I only have zsh on my machine, and I'm writing a document with bash code blocks. What if the user executing them is using zsh as his default shel= l? 2. I have both bash and zsh installed on my machine. I want to write some c= ode blocks in bash, and other in zsh. How can I make the difference explicit? BTW, a "needed" feature is the executable flag for shell scripts. I found a reference to it ("PROPOSED make tangled files executable? At least if using shebang line") on http://orgmode.org/worg/org-contrib/babel/development.php. Thanks anyway for your marvelous tool (replacing my need for Nuweb, and giv= ing me much more opportunities), Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode