From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QFalHgXUU2P7dgAAbAwnHQ (envelope-from ) for ; Sat, 22 Oct 2022 13:29:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yOnjHgXUU2NFdAEA9RJhRA (envelope-from ) for ; Sat, 22 Oct 2022 13:29:09 +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 3322480F6 for ; Sat, 22 Oct 2022 13:29:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omCDW-0003II-K1; Sat, 22 Oct 2022 06:59:02 -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 1omCDV-0003AG-BZ for emacs-orgmode@gnu.org; Sat, 22 Oct 2022 06:59:01 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omCDS-0006ia-1w for emacs-orgmode@gnu.org; Sat, 22 Oct 2022 06:59:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 13317240028 for ; Sat, 22 Oct 2022 12:58:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666436336; bh=F27QnIwPUWi2hwz0WLrFWee1dI9PcWttj2Ie1PyyiUs=; h=From:To:Cc:Subject:Date:From; b=ep7JTSBLMLGWNFWPZucb+CNuGhlKzkOcVEyUf/xzX7fRQI7Rqpjnx9zLta+UQL9lt 63ZMP7uq0oqdWusowNSwCZBP3m9TkFxIjOLAKZqKV7zgYRhQu2q7sP3FFuW2Pv5R/j cpXOA/QzuknqcKZ8/rg5rwDbKuY/+yyTG/jK+YYrZCBzhabYv3Z1ONyMX8OeWzLlU9 3M6nK3fywte79quJVDrC5mZl6uLsDrYVbxzqNdCTi9bGVrDxBDqEXuSk90lYnAVTlB u2BjpWKfubV2eUpfqu3axrPrpf60QfIvGW1DQDmUIfAPt263MB9ESqbifWL04+bRAO cQHPqtaOZtxuA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MvdcY5R2tz6tmJ; Sat, 22 Oct 2022 12:58:53 +0200 (CEST) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: Org 9.6-pre and Bash sessions In-Reply-To: References: <87edvbysqc.fsf@localhost> <87r0z6j1b1.fsf@localhost> <87pmel68y6.fsf@localhost> <87o7u432tl.fsf@localhost> Date: Sat, 22 Oct 2022 10:59:38 +0000 Message-ID: <87a65o15ut.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.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, RCVD_IN_DNSWL_NONE=-0.0001, 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=1666438149; 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=C/UmKDpiq/bLFxiovW4EfxsELAk3LAIqCvJwoTEbpdE=; b=BEpzaPDPaSPg0UBTNZDe8O3/EWRE70D9Ys8eF7plJHVTqY6pDgFEHDA5SJQFn8jesk0rKc C8IJtzSGdWuCAzET3JzvENfq2cqjxceuy+wx6Ytbhkc6Bfw3Tov9oANemhV5yt4Rms1k6P 6fptin+xMYIzGAUd2EHWhj3q03cMWXnS3ZBjX3Rg6Be54/be4QMz1WJzkkr0LX2x7yY3ID WFzZK179VGt+T44hydSZa0Djspv3I3AryV9h5bCNONFNF/7Z/MhAx2QW/KVpDt4aLSGABi j3RP7dT3Cvvz9ZYka1atFSUfQ2DMB4GYed+0PSsgiCGUw34Va3mL03IDRT9B+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666438149; a=rsa-sha256; cv=none; b=EZ4UNJ2aDezbBjoTjrHNeU6tgpyIQ83qPrSs875kSBcTIT/jxTRnud3Cbeh/tLDEun0rmx NMjcfwio9Toj69dKa0UFYH8JWIL4Y+SAv/J6KozWSSgCeCeR/BfTnJOXE3gbAaxhU9TvhU Lz1/i/iK4UZ993yNCf02PfvGBdVvrU59F+1GiNNrFmFKyqcY2/ceGh1tx5ZXTwP9vyo/v6 JMcbQAOD76r+X+pHsP5LL/34uFAg3qu+HjnHioGqR3FNemNNzbuM7Q+8fl3TBizWhebJs0 yuL1zHMIBa3iSbZ0Dn1M1sybytJrqRkE8FgOHuf7/ekoDFShmGMIAZVuIGz1Sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ep7JTSBL; dmarc=pass (policy=none) header.from=posteo.net; 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: -1.94 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ep7JTSBL; dmarc=pass (policy=none) header.from=posteo.net; 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: 3322480F6 X-Spam-Score: -1.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3/YeAb/SgBBT Rudolf Adamkovi=C4=8D writes: > Ihor Radchenko writes: > >>> I did some testing and found no issues. > > Update: Today I needed to run some Bash, and it seems broken. > > PROBLEM 1: WITHOUT A SESSION > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > CONFIGURATION: > > Emacs 29, Org from Git (2f5e7103e59f06631e985d3dd39af21b5b7464ea) > > REPRODUCTION STEPS: > > Run the following code block: >=20=20=20 > #+begin_src bash :results output > echo one > one.txt > echo two > two.txt > diff one.txt two.txt > #+end_src >=20=20=20 > ACTUAL RESULTS: >=20=20=20 > #+RESULTS: >=20=20=20 > EXPECTED RESULTS: >=20=20=20 > #+RESULTS: > : 1c1 > : < one > : --- > : > two This is actually expected. Without session, ob-shell discards results of src blocks that fail and display *Error* window (empty in this case). If you try=20 #+begin_src bash :results output echo one > one.txt echo two > two.txt diff one.txt two.txt || true #+end_src things will work as expected. I guess we can display a bit more info in `org-babel-eval'. > PROBLEM 2: WITH A SESSION > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > CONFIGURATION: > > Emacs 29, Org from Git (2f5e7103e59f06631e985d3dd39af21b5b7464ea) > > REPRODUCTION STEPS: > > #+begin_src bash :session bash :results output > echo one > one.txt > echo two > two.txt > diff one.txt two.txt > #+end_src > > ACTUAL: >=20=20=20 > #+RESULTS: > : org_babel_sh_prompt> 1c1 > : < one > : --- > : > two >=20=20=20 > EXPECTED: >=20=20=20 > #+RESULTS: > : 1c1 > : < one > : --- > : > two Confirmed. I know what is the problem. It is comint sometimes throwing output without newlines, which leads to comint-prompt-regexp not matching all the prompts after concatenating. Will take a look tomorrow. > ADDENDUM > =3D=3D=3D=3D=3D=3D=3D=3D > > A friend of mine, who uses Org that comes with Emacs 28.1 on Linux, > tried the PROBLEM 1 source block shown above, the one *without* a > session, and he got no results either. > > (We might need better tests.) Better tests are always needed :) https://orgmode.org/list/874k81bsvz.fsf@localhost --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at