From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SNGzHhFtE2FslwAAgWs5BA (envelope-from ) for ; Wed, 11 Aug 2021 08:24:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IB5mGhFtE2HgEgAAB5/wlQ (envelope-from ) for ; Wed, 11 Aug 2021 06:24:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B3AD2153D8 for ; Wed, 11 Aug 2021 08:24:16 +0200 (CEST) Received: from localhost ([::1]:53974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDhew-0002TU-PU for larch@yhetil.org; Wed, 11 Aug 2021 02:24:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDhdy-0002TL-Q3 for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 02:23:17 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:55038) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1mDhdw-0007Qs-D7 for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 02:23:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=dwFlPeK0QMGYIkK/KzjzXHLQaQjPQwRaEEvkoGPC6eI=; b=PW3jW4kZQ+y1IacD9WqmWTXyvkwlGL+XKPYgU3qNz6L6eF6V0phHUGeWPC9xnLn2CCfT0AvUEOp0UF2BSOvkDVrNVjnPhzIrBk1myLeJWrs2bnokOBh1DXyq8z4d9HgxpMDlQ1HESO0gPqDit4bGTPvDPcYTkFzrjFBvP3TaZxJO/8dHbbLkWK1u/20b8CcgtfWl5G5H5xJ465I4rgA5epzomZTPwBx9kJ2taBznOY0ZwtiXmjaTrXB/sbLSHvCSU6ebYIZFWOdhUK6VGJdZPZDK43fXMEIXWYM/WtdhtWVWxth3hI+acwixK/68Uz7G0rFzcpaviouW5ON5X6WHNQ==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1mDhdn-0005eq-9y for emacs-orgmode@gnu.org; Wed, 11 Aug 2021 08:23:03 +0200 Date: Wed, 11 Aug 2021 08:23:03 +0200 To: emacs-orgmode@gnu.org Subject: Re: bug: Error handling in source blocks. Message-ID: <20210811062303.GA21436@tuxteam.de> References: <3ac06f2a-c14b-593f-a6e2-8e1c85c19436@pdx.edu> <87czqlf0gg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <87czqlf0gg.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628663056; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=dwFlPeK0QMGYIkK/KzjzXHLQaQjPQwRaEEvkoGPC6eI=; b=Vvsoluyv4dewJWIZaUo0pdj4Rv6FdReKVU5zXMwXMfFhrm2J3h1W/OYIINrZdofmXiWl+L VRmpfq7a/bmQN+EmBEdp67xD0BQst9AbG5mYQndkift1zz+Ad448AqMkCTIcxhW8Q9HCHj B7fJWkAp6ZkoAmhWPOmXzfGeP/Hh4Mq97Px4TRkYuHGw3x4Ib74qDSPEzKq7OhVKGjIpVB Cn7ikdaCfvKOSD/K2eq23//jr0raQPWmYOvlof2rKFjKp1++usj4Di+nX/ZFlq4v0FvxwB +yn0+3pZqcxz1GoWKqhAXCjIODZ9q4/3yaqLicrITbKIHTKubnWjXOfWnX9D5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628663056; a=rsa-sha256; cv=none; b=LnA7Ldfk7rBLXJPGC2hv8wek1wpKDP6qU3MvMPYumSXJ7ecDkUI3YK1AIH+imBldNvfWKU q6Y0/oPyefhrhqPvOM0R5q0itS84rt0vX7XmlgzlwnoVGnFwh7t82Sm53Gxp5FysK8m5IL Eq+Y6kRgfjj0X1OY3JCvkVRUDpMPKbMF2RGQVI3ei+MlerGyhMv8+GuOltMSZjYvI2ZmBH BFRaexS/X3KwqMGrr08By57RvzUiu3r1D0VbaTJ4ICDmBiObYYarp7ldiLqEslywlMNmqd nVefe894tmVjGQD3lPS0SNk6anJzmrCnUcYx6KuTrc9Lb2tYEp9B9/IdEMwS5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=PW3jW4kZ; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -4.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=PW3jW4kZ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B3AD2153D8 X-Spam-Score: -4.71 X-Migadu-Scanner: scn0.migadu.com X-TUID: +KnFp2yWzVEs --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Wed, Aug 11, 2021 at 06:30:26AM +1000, Tim Cross wrote: > [...] For example, in an > interpreted language, you could have errors due to problems with the > interpreter, you could have errors in the code or you could have a code > block which legitimately returns an error [...] Yes, your error might be my nugget. For one illustrative example, I once cobbled up a small shell tutorial. Babel seemed like the right thing -- but I needed script snippets erroring out to show off. Needless to say, Babel freaked out, not only on non-zero exit codes, but also on any hint of activity on stderr. I cheated myself out with preambles and postambles, which redirected stderr to stdout and lied about exit codes. This is, of course, horribly ugly, because it's language-specific (you'd have to do it for C or Scheme or Perl or...), although the concepts of exit code and stderr are OS wide. We could do better :) Just one data point. Cheers - t --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmETbMcACgkQBcgs9XrR2kbicACeP+sD9cX3lK1lsX6/NK8ip2D7 MqwAn2mhxk7tRm0/eOrHyRLjkLLy3GRB =iFxP -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--