From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: babel: results switch (output vs. value) has no or wrong effect for sh source block [7.7 (release_7.7.107.g7a82)] Date: Tue, 23 Aug 2011 11:10:52 -0600 Message-ID: <87bovgdoza.fsf@gmail.com> References: <87pqk1o39w.fsf@gmail.com> <87pqjybpg7.fsf@gmail.com> <87ei0ccd9u.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvue9-0007mm-UJ for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 13:20:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qvue8-0002tH-Dd for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 13:20:17 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:51074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qvue8-0002t9-4x for emacs-orgmode@gnu.org; Tue, 23 Aug 2011 13:20:16 -0400 Received: by gyg10 with SMTP id 10so287228gyg.0 for ; Tue, 23 Aug 2011 10:20:15 -0700 (PDT) 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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Michael Brand writes: >> If the shell is a special case for babel anyway, why not something >> like the following? > > Ehm, no. But I think that it would be generally useful (not just for > shell blocks) to be able to capture stderr, either together with stdout > or separately into a result target block and have the return status > available as a variable (although that does not work for consecutive > invocations in a session). > Hmm, I do think that a ":results stderr" option could be useful, however this would not be a trivial implementation as it may require adjustments to all of the language files. -- Eric Schulte http://cs.unm.edu/~eschulte/