From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +K3hBFlPXGPkUgEAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 23:53:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QJDkBFlPXGPCUwEAauVa8A (envelope-from ) for ; Fri, 28 Oct 2022 23:53:29 +0200 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 CA826EB91 for ; Fri, 28 Oct 2022 23:53:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooXHl-0000dm-M2; Fri, 28 Oct 2022 17:53:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooXHl-0000dd-1x for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 17:53:05 -0400 Received: from mr85p00im-ztdg06021201.me.com ([17.58.23.189]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooXHj-0001PE-Fs for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 17:53:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1666993979; bh=1oP+IBxqQnuy1ByvKBYo9Jax6A/GHatozgebja45Izg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=k/+mhRdK1xvCBMwiUybx0GnX2HGmCH6Jl7WdiATxQ6GEnEOAiWn7pzEpGL9utxsVF h34tkRMqAITWiV15cyG6MeH2CP2foWAs4FgUeZRBkqMqgHlDZBIEliqBrF/IQPOduw RJ+tgRzPQPQ+hipke+f7Y9XXTXwFpD5d/OYYNSMl9pwFYGynxojPLGv7hGtwRcttcf pQ966dDyeqODTpu0TGXKZsKm1Q0NSWl1XK49jodyLS8UJK2bCVilUYnGh204X385cC B5e4NuiWacyvaFN2yQKXMZwIOD7uRXt2/KZwlb/6ncvz9T1bkwRKxc7DPw1H0u4OVj koie23PFUb4+g== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06021201.me.com (Postfix) with ESMTPSA id 062473208A3; Fri, 28 Oct 2022 21:52:57 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Ihor Radchenko Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: Org 9.6-pre and Bash sessions In-Reply-To: <87v8o4krel.fsf@localhost> References: <87edvbysqc.fsf@localhost> <87r0z6j1b1.fsf@localhost> <87pmel68y6.fsf@localhost> <87o7u432tl.fsf@localhost> <87a65o15ut.fsf@localhost> <87fsffqi49.fsf@localhost> <87wn8lorc1.fsf@localhost> <87v8o4krel.fsf@localhost> Date: Fri, 28 Oct 2022 23:52:54 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: STEOuZAlw_m5Q2aRfE16djuAyJrg_6R_ X-Proofpoint-GUID: STEOuZAlw_m5Q2aRfE16djuAyJrg_6R_ X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=340 phishscore=0 mlxscore=0 adultscore=0 malwarescore=0 clxscore=1015 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210280138 Received-SPF: pass client-ip=17.58.23.189; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06021201.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666994008; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1oP+IBxqQnuy1ByvKBYo9Jax6A/GHatozgebja45Izg=; b=kmIhA2JzL1HCxdnM/aMLTpP5JSXy2qeWGA6+wEuyomC+izHwadPFeE3khcw/UjuLQz7tBW aOgz/tJyWJZ+J2WZ/vv33XGsOJl326gZu+drcdvd8Zc+AiEHVB0xH/Dy716YTrS0LTJKi7 EOkxgUk0LZFV9p/pKnw4w4b/4MZuH7kbOSvL7CkUzxo1Yb1k8y/Whg5MU5HXGI8EBHNcCx lIk52X9Djc2WPIq0XJIYsyhSXessZJeryq0s5TISuDkZeIU8pWWjzkNj4FS/4bcMW6Kx1V kZVT2kysybCS0zHvjqkTE/CMpXi2/yy+Z8CuXQiph7FMLu3IwmOPHvHWx2XQTQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666994008; a=rsa-sha256; cv=none; b=D88voQmY9HMB6JGm16zTbdb05JiTgaEoI1V0O4KNrscQXFzbBAYps/WSzpUAFBQ94iC5yE Qgk8cyfEPOgTQrigDg9vLG4c9ta3zPnF9dcdjwZNc2/nLxv82cJwdL5UX9GuTwiw9aEDAc ZKiohOGXLsJvINlbOy/iAU9XRdWQdiTgDBIqMKMEC6kYJWJTNykWoAejuUctBIW3R4MpiJ MSX9SxtuAo/08yj/h+rN564sC7eycjVfdmm8E+L7Iu4OORdzMFFe7hhjnHNip43I5L884q LYMWwsFspCUjdbL2rqtsOL7d5kRwx7hK1Tp1XrhsEbiUNcldz3aQ5HeP1cy8uw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b="k/+mhRdK"; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b="k/+mhRdK"; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CA826EB91 X-Spam-Score: -8.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2gi5k9D9TYaz Ihor Radchenko writes: > I do not think that it make sense to display that buffer when the code > finishes successfully. I can see this kind of behaviour > breaking/spamming automated scripts or export---code working in the > past may throw error output into unsuspecting users. But the exit code has nothing to do with the standard error. Unix programs can, and often do, halt with non-zero exit codes while producing error output containing important information, such as deprecation warnings. Further, many programs use error output as the alternative "anything but the result" stream. Preserving user data, instead of trashing it, data does not count as "spamming ... unsuspected users". On the contrary! For example, I use a program for work that uploads data to a certain 3rd-party server. It exits with a zero code but also shows extremely important notices on error output. As an "unsuspecting user", if I used Babel to run the program, I would end up in a trouble. So, we should never implicitly trash user-generated data, let alone based on a "completely made up" belief that a non-zero exit code somehow implies "no important error output". It does not. (I speak only about Unix-like systems here. Perhaps on other operating systems, things work differently.) > I do not think that it is a good idea. Code block execution may > involve a whole chain of blocks when expanding references. If we wipe > the error buffer and multiple blocks are failing, some errors may go > unnoticed by the user. In that case, can we prepend a newline instead of appending it? That way, the tests would look "more normal" and the buffer content would have the content one would expect, with no "hanging whitespace". Rudy --=20 "Genius is 1% inspiration and 99% perspiration." p-- Thomas Alva Edison, 1932 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia