[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: [Org-Babel] Export environments for shell results?
From: |
Dan Davison |
Subject: |
[Orgmode] Re: [Org-Babel] Export environments for shell results? |
Date: |
Thu, 07 Oct 2010 15:37:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>> Could I ask you to make the source blocks reproducible in the future, so
>> that we can execute them without having to alter file paths etc?)
>
> Sure. I'll do.
>
> Here, I could have used another file that I can expect to be always at a fixed
> place (like grepping in ~/.emacs or some such).
>
> Generally speaking, you'd want me to pass the path as an Org :var parameter?
> Or using default environment vars from the system?
If possible, avoid using system paths at all. The behaviour you describe
can be replicated with something like
#+begin_src sh :results output
for i in `seq 1 4`; do
echo "autoload"
done
#+end_src
#+results:
: autoload
: autoload
: autoload
: autoload
Dan