From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KJRHM7per2U5FgAAqHPOHw:P1 (envelope-from ) for ; Tue, 23 Jan 2024 07:37:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id KJRHM7per2U5FgAAqHPOHw (envelope-from ) for ; Tue, 23 Jan 2024 07:37:46 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=vplgOaX8; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705991866; a=rsa-sha256; cv=none; b=AoDbQxrbOZg8tuwZ5gFpCaLHWjwCumpUYXJJ5XvgBOrQ3Ty8ZcOTXo21vN9ZXzIFU5XB4f YT5QsB1pibN3FVuvIT01iotQn1+hBcZQlvhRfKNc19X1OgJqjPf21varVDLS7LpkUmbQKq jCMg96YrhmfT3gD25/GZ1hyRgFNh5fx0JheHdr/Eqq7xZPmDyqQvRukywMFeUHYYmKIFW/ BX/gA0G7KEpz3ZdYAEHgPEuwnVqNBxGSHmoZx+3XrJSQTlmkSNtH1K0JyXPXkc2A7vozvl YIRhOBQOysTDkByQW2LngSyOI51pmWxPZOL8BZrEWXhdL2+uN1fULeGpVccOZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=vplgOaX8; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705991866; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AKv0kn9MrbGrxZ/08x2qtcu77rjZRqL6sa6nVRSfGBc=; b=WTWrcR6xd8FolVp7l3k6UO3h7YZob9jrUst9OLsdLyeL1uYZy84HaUMlD3kf8ABz1Ln8yX lEDwZaFuH+G3Ivl9VBggZV374PcNCnUv8avnwtsyD3TTFUeuWUNF3UWUIgjrLwzmU7nv80 PZZf3mPo8SViPUv/Q7rO693/pjfH+cuLThOSWK09RBHztXrJGk8WKvIKN8OzsFz8QLRccP BUx+dNvaVPurBoVQSVPIzafjbKyUjHsOtn9V0o+BqOmDzb+G1VDfvOaOmJO8RoYLpGzYNs 9T2GgcWxI1PWgBosVuRj62pxbLOhQlVpYMYxUekJSJ5yk+p3G/o0JfQ8u3crmw== 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 8B6A276C65 for ; Tue, 23 Jan 2024 07:37:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rS9yS-00062V-Bz; Tue, 23 Jan 2024 01:09:28 -0500 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 1rS9yM-0005ym-NF for emacs-orgmode@gnu.org; Tue, 23 Jan 2024 01:09:23 -0500 Received: from mail-108-mta215.mxroute.com ([136.175.108.215]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rS9yK-0003O2-W8 for emacs-orgmode@gnu.org; Tue, 23 Jan 2024 01:09:22 -0500 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta215.mxroute.com (ZoneMTA) with ESMTPSA id 18d34efdb110003727.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 23 Jan 2024 06:09:10 +0000 X-Zone-Loop: 153f26a6bfd07220736b10ba1394a8b8c18ed582cd50 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tatersworld.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AKv0kn9MrbGrxZ/08x2qtcu77rjZRqL6sa6nVRSfGBc=; b=vplgOaX8TNWW/HraO+wPsene61 TVp0soLz/J0sv2hR1T7O7fsKxrdQODRDJmrxlN95ulLKiunt43EhnWOQAYS3YIBF7fUxr8R/+EeYe ZJEGU/+Tyl49wKnjdkm56KZyybir3yN2EYmerCEmZjFlnz+XDv+6BcHl4gFVlkLqVuLbhF/2q7O9n 4ZBz1yKdTW9S1I4WbzkBU+B6waof76pKYqWH3QDpIY5RYmTXKjxun9lR690ZITtQFx7If7NoIaqd2 1oJp3rCVF4FBsCOwWebdxtONpJNCpog5rUfbPTleJMNBpXHY1YYjstYPr3UfdYLDJQFNR7lUG8TaH 1Fj2xVqw==; From: Jack Kamm To: Ihor Radchenko Cc: Matt , emacs-orgmode Subject: Re: [BUG] conda doesn't work in ob-shell sessions In-Reply-To: <877ck1vass.fsf@localhost> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87a61j3orj.fsf@gmail.com> <1864701b4b8.e37160d6373275.4308190093579612690@excalamus.com> <87357a2r27.fsf@gmail.com> <1864c676b9f.e1bae673679825.2955884247216895930@excalamus.com> <87ttzn1mai.fsf@gmail.com> <87h6jaj1pk.fsf@localhost> <87sf2q9ubd.fsf@gmail.com> <87o7de9gq5.fsf@gmail.com> <877ck1vass.fsf@localhost> Date: Mon, 22 Jan 2024 22:09:08 -0800 Message-ID: <87le8ga8e3.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.215; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta215.mxroute.com 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, T_SCC_BODY_TEXT_LINE=-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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -5.56 X-Migadu-Queue-Id: 8B6A276C65 X-Migadu-Spam-Score: -5.56 X-TUID: vLjPfnqy46qQ Ihor Radchenko writes: > What about the attached patch? I applied the patch to main, but the behavior was the same as before. More specifically, I am testing with the following block (with minimal init file from my previous email): #+begin_src shell :session *shell* :results output conda activate test-env echo test #+end_src When I execute the block before session exists, emacs hangs. But if I start session with "M-x shell", and then execute the block, it works. Here is how the full *shell* buffer looks in the former case that hangs, after I quit the hanging with C-g: $ PROMPT_COMMAND=;PS1="org_babel_sh_prompt> ";PS2= org_babel_sh_prompt> conda activate test-env echo test echo 'org_babel_sh_eoe' (test-env) org_babel_sh_prompt> test (test-env) org_babel_sh_prompt> org_babel_sh_eoe (test-env) org_babel_sh_prompt> And here is how the *shell* buffer looks in the latter case which works, when session is started with "M-x shell" instead: $ conda activate test-env echo test echo 'org_babel_sh_eoe' (test-env) $ test (test-env) $ org_babel_sh_eoe (test-env) $