From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 iLoJJyQUTWNcQQAAbAwnHQ (envelope-from ) for ; Mon, 17 Oct 2022 10:36:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qCsfJiQUTWNaMgAAG6o9tA (envelope-from ) for ; Mon, 17 Oct 2022 10:36:52 +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 4DC53C523 for ; Mon, 17 Oct 2022 10:36:52 +0200 (CEST) Received: from localhost ([::1]:48094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okLcB-0004pZ-Br for larch@yhetil.org; Mon, 17 Oct 2022 04:36:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLZV-0004no-PA for emacs-orgmode@gnu.org; Mon, 17 Oct 2022 04:34:05 -0400 Received: from mout01.posteo.de ([185.67.36.65]:53837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okLZQ-0002qf-DS for emacs-orgmode@gnu.org; Mon, 17 Oct 2022 04:34:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 974B5240027 for ; Mon, 17 Oct 2022 10:33:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665995637; bh=x3ye4Iu06KxWvB/AewxbAqdhVtuqNfvjq/k4ezNz3e8=; h=From:To:Cc:Subject:Date:From; b=pC5ER93H/jL31MYMO2ksHmUUl0BwZ3yf41Lkzpt4sZ49kkWV+3dO5pCaxTuXvXdS1 YpI3ViA3cEz2simuAgxJQDvmYCQ7vbJb9jHbCmcBwAWdgK/iraAc3IMNAR8STgC+0x FrRPdg+/c5b4DbayL/dLAIUQQjn7DwY8IFlYzShbS5zz6KjDwPMVq52AatjKAiDyvT 8cqQ1VAT3QMiC3tsllMQuApBaJAeuzlopH1wgYKRsSpibVILPDU95v8pZ1Zq0RKtra mEaRDczG945tJ4j/3YhSvQ589N2MhjtYHCBJClB4Igk0KornDa4EQxDbhaCYYYD5+o ukXI/0jamOplQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MrVdb3D2tz6tmF; Mon, 17 Oct 2022 10:33:54 +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> Date: Mon, 17 Oct 2022 08:34:42 +0000 Message-ID: <87r0z6j1b1.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_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1665995812; 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=x3ye4Iu06KxWvB/AewxbAqdhVtuqNfvjq/k4ezNz3e8=; b=DiCYb1FunlNyaGHqQvwJBXeqcml5GX4hydSlIcQS2BFX9GXF7qlsZIQW95cD3lydUuqKPr C/HhqeEU7mcbUudAuMisyJknmMrGhc88c8qcJBUILwGqX4vv0ksx3SecjXLerJEYCLAzJu lY823S3zHc8yF9nOtUQnjL963POgOc2tH7XTE5DpCeSvrm4OSNzNEYgCvuCk7M02Bk2xNp AUR1gpk4U/nCxqHd9dKpbky5lI2eMx/m9m0cYLIMefRw7wToUjSVxXQ3jTLOtkXhUgmxdo nXZlcRjXxE5ph18u6GdOImS6Ip7ndmEinjq3LQbW5GYLIZ1b1klZEOc+dyJQZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665995812; a=rsa-sha256; cv=none; b=bUGT79El2YqMd1dZxd1wrazEw7P/7GwkyrpuXcRFMKmL3r36h2gQKlrEsKdjI4XXFqGZ89 q6EUOf9J0wghwB60VXMFW8H+NT4u5FsgcGCos6gRL9JsmnCKpoXyx5eHC5Z3YnbqS0caJm qTKpGHRpjoUFaIqtMAU4OdU3ECA4Z0g0uW4ogby+3iuv9Q2KtohZbOZUJFm2gUhy7CBWfW 4uXcK+hO/pZtFp4KheSdGwKhBSWuVV15WIylQp2Y4SV07xeKZDwVHvjSYh5S+lojGLQO6s S6i5imxlxCOcFEjBcJuNFhHt6DphaPaME6DLyMHSY7NVYLz+gKeXU2WrzuhfLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pC5ER93H; 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: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pC5ER93H; 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: 4DC53C523 X-Spam-Score: -3.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: HlY+1+PEfsBm Rudolf Adamkovi=C4=8D writes: > : > : > > hello > > on the subsequent runs. > > Better than the new version but still wrong. :) And this is what drove me crazy during debugging. I do not understand the logic of all that ob-comint code. I have identified that the hang happens because Org does not change PS2 prompt. Just PS1. But fixing this would yield to : org_babel_sh_prompt> org_babel_sh_prompt> hello Then, I tried to see how the original code works. And it does not :facepalm: I asked emacs-devel https://yhetil.org/emacs-devel/87y1tgqhmc.fsf@localhost/T/#u No clue how to read the script output programatically in comint buffer.=20 --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at