From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Regner Subject: Re: org babel execute shell in sh? Date: Mon, 12 Mar 2012 17:38:18 +0100 Message-ID: <874ntt6ah1.fsf@goochesa.de> References: <87fwdj67q2.fsf@goochesa.de> <3596.1331353274@alphaville> <87pqchg6ab.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S78Gt-00044M-Se for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 12:38:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S78GU-00034d-6P for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 12:38:55 -0400 Received: from v2201111105296627.yourvserver.net ([46.38.233.178]:55747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S78GU-00033l-02 for emacs-orgmode@gnu.org; Mon, 12 Mar 2012 12:38:30 -0400 In-Reply-To: <87pqchg6ab.fsf@gmx.com> (Eric Schulte's message of "Sun, 11 Mar 2012 22:34:39 -0600") 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: Eric Schulte Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org, Panruo Wu Eric Schulte writes: >> >> But I'm often bitten by the distinction between export and tangling -- >> :padline, :shebang come to mind, where I expected org-babel to honour >> the setting in both cases. >> > > Could you describe a use case where these options would be used for > exporting and would be preferable to simply including the padding lines > or the shebang literally in the code block? I use an LP org-document with zsh-codefragments to generate a CLIF testplan - the script is tangled, then executed and the output -- the generated .ctp file -- exported. In this case I'd prefere it to have the shell from the :shebang option used to run the tangled program, not /bin/sh, so that exporting the output inside the document and running the tangled program standalone produce the same result. At the moment I have to set the shell document- or session-wide to zsh to get reproducible behaviour. Whenever the export/execution is part of the generated document and of the generated product (the tangled code) I would like it, not to have to sides to configure. I don't know, if I make myself clear -- If not, please tell me so and I try to distill an example out of the cases I encountered at work, where I was wondering why some things did not work as I expected. Kind regards, Tom