From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [Org-Babel] Export environments for shell results? Date: Thu, 07 Oct 2010 15:37:24 +0100 Message-ID: <87eic2nk63.fsf@stats.ox.ac.uk> References: <87y6abicqw.fsf@mundaneum.com> <87y6abwdf7.fsf@stats.ox.ac.uk> <8739sidt1v.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=40935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3rcD-0002hl-Ed for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 10:38:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3rcC-0000ZP-FZ for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 10:38:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:46137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3rcC-0000Z7-8u for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 10:38:36 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3rc8-0005h7-AQ for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 16:38:32 +0200 In-Reply-To: <8739sidt1v.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Thu, 07 Oct 2010 15:35:40 +0200") 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org >> 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