From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Babel] No output returned if just one command is failing Date: Wed, 01 Dec 2010 07:29:10 -0700 Message-ID: <87r5e1ftxl.fsf@gmail.com> References: <80eia1ondv.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=35406 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNngM-0005ip-5Q for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 09:29:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNngJ-00038D-Qx for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 09:29:18 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:46124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNngJ-000382-OR for emacs-orgmode@gnu.org; Wed, 01 Dec 2010 09:29:15 -0500 Received: by ywj3 with SMTP id 3so689707ywj.0 for ; Wed, 01 Dec 2010 06:29:14 -0800 (PST) In-Reply-To: <80eia1ondv.fsf@missioncriticalit.com> (=?utf-8?Q?=22S=C3=A9b?= =?utf-8?Q?astien?= Vauban"'s message of "Wed, 01 Dec 2010 10:25:48 +0100") 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: emacs-orgmode@gnu.org Hi Seb, I don't forsee adding partial results insertion both because - it would add a good deal of complexity to the code to insert results part-way through a run - the current behavior of only inserting results on a fully successful run is reasonable and is probably more obvious (at least to me) than inserting partial results Best -- Eric S=C3=A9bastien Vauban writes: > #+TITLE: Babel doesn't return output if one command fails > #+DATE: 2010-12-01 > #+LANGUAGE: en_US > > * Abstract > > When just one command fails in Babel, then there is no shell output at al= l. > > * One command fails > > For example, the last command (=3Ddatee=3D) is not found: > > #+begin_src sh :var file=3D(buffer-file-name) :results output :exports bo= th > echo $(basename $file) > datee > #+end_src > > #+results: > > Result set is empty, while the =3Decho=3D command did work, and did produ= ce > output. > > * All commands are successful > > Only if all commands are successful, I see all results: > > #+begin_src sh :var file=3D(buffer-file-name) :results output :exports bo= th > echo $(basename $file) > date > #+end_src > > #+results: > #+begin_example > ecm-babel-one-error-no-results.txt > Wed, Dec 01, 2010 10:21:09 AM > #+end_example > > > Best regards, > Seb