From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wjRRBvW3VV9WDAAA0tVLHw (envelope-from ) for ; Mon, 07 Sep 2020 04:32:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6AIJAvW3VV9wKAAA1q6Kng (envelope-from ) for ; Mon, 07 Sep 2020 04:32:53 +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 6966D940414 for ; Mon, 7 Sep 2020 04:32:52 +0000 (UTC) Received: from localhost ([::1]:48222 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kF8pl-0006pI-S7 for larch@yhetil.org; Mon, 07 Sep 2020 00:32:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kF8pR-0006oy-TY for emacs-orgmode@gnu.org; Mon, 07 Sep 2020 00:32:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34587) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kF8pR-0008GI-KV; Mon, 07 Sep 2020 00:32:29 -0400 Received: from lns-bzn-32-82-254-31-120.adsl.proxad.net ([82.254.31.120]:45286 helo=guerry) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1kF8pQ-00035f-Qr; Mon, 07 Sep 2020 00:32:29 -0400 Received: by guerry (Postfix, from userid 1000) id A8D1D1A60D70; Mon, 7 Sep 2020 06:32:26 +0200 (CEST) From: Bastien To: Vladimir Nikishkin Subject: Re: org-babel opens the error output of a block in a separate window... unless :stdin is given, but how are they connected? Organization: GNU References: Date: Mon, 07 Sep 2020 06:32:26 +0200 In-Reply-To: (Vladimir Nikishkin's message of "Tue, 25 Feb 2020 09:36:27 +0800") Message-ID: <877dt6ryud.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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-Spam-Score: -0.01 X-TUID: 5lGruMZIP2GZ Hi Vladimir, Vladimir Nikishkin writes: > #+name: empty > #+begin_quote > > 1 > #+end_quote > > #+begin_src shell :shebang "#! /usr/bin/chibi-scheme :stdin empty > (/ 1 0) > #+end_src The example above does not work for me. Can you provide another one? > Now the chibi-scheme shebang is just an example of an app writing > things to stderr. The actual content of the <> doesn't matter, > the app errs before ever having a chance to read anything from stdin. > > However, when :stdin is given (as in the MWE), the resulting error > output is printed in the :RESULTS , and if not, it is displayed in a > separate (a bit annoying) window called "*Org-Babel Error Output*. > > I would like to ask how these two things, stdin, and stderr are > connected. Perhaps, this is a bug? I don't know but perhaps you can instrument the relevant functions in ob-shell.el and see what going on, if you still have this issue? Thanks, -- Bastien