emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org babel execute shell in sh?


From: Tom Regner
Subject: Re: [O] org babel execute shell in sh?
Date: Mon, 12 Mar 2012 17:38:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux)

Eric Schulte <address@hidden> 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 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]