From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kC/MHh18gmbxIwEAqHPOHw:P1 (envelope-from ) for ; Mon, 01 Jul 2024 09:51:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kC/MHh18gmbxIwEAqHPOHw (envelope-from ) for ; Mon, 01 Jul 2024 11:51:25 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="bJCm/gUB"; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719827485; 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=VxgYZzSC8/dSKfVZtdKufatqisS7JWpCfRkSJW31Now=; b=tMDvRRADWsjPIiL68biDxQRrt/+ZQuYCxFmqYCR0T+UDbILk0buV6O+isgEMvzplGnmbex bW8eMnHF0BAEsMX/zHjFuihBBfQVQwB9vHUNo6wqM+v6ZZNz12qa2SdnTFT7qKisYZ3Jyg i74xlfz98dUl57qHpUXHURRa5UesMSeWRQgP/9hgSeq5f3GSrOV1hgQYcy6+5h7Bq2rCa7 3oAt+O8nE7pV+NPR2/m0L/+zCt1orvqOws6ve2wiPqo1clDWMFxJtGP6YvU1svtiZj8oL1 qMEZwWObizx1TNkCFxKdWZROg4NlrfdK9JifJd6vPtlHvkg/AqRVVtj/YrHSkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719827485; a=rsa-sha256; cv=none; b=PeZUFVL2I5sw2N4XgAKic+jEpEwphb286MUzKCoSy3JFljVLEKWewsEMiJ5ZZXt8+k8S6I j4zko1nmjQhDLwSX4T+oZkRefrD3EZUQEa+RHpjNy01qX1nX68RcrZ9oy3NsW0hShL3w3v o4UseV2ZwM+BPYcMj5eCBGl/15G+XINtDAPiE+cEuaG4v+Qvsqzec65xQ4y2vCWhlhxBPz sdinS9wx7xgxezGeJ5lrDqsLU2I2Xvc5E7BPwD/VUNRUbnUaHl5y192iVeMdbWRxatm0xZ MHfzLhNIuleaQZvGDCNEpa8WCRw60PYuD+1F2Z1YdMNChGQeMQnEIsBblNAaWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="bJCm/gUB"; 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" 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 1F70773FEF for ; Mon, 01 Jul 2024 11:51:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sODg9-00023M-23; Mon, 01 Jul 2024 05:50:33 -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 1sODg7-000238-FN for emacs-orgmode@gnu.org; Mon, 01 Jul 2024 05:50:31 -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 1sODg2-0001Oa-0U for emacs-orgmode@gnu.org; Mon, 01 Jul 2024 05:50:31 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 4B1F4240027 for ; Mon, 1 Jul 2024 11:50:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719827422; bh=UQp4CLvgBIp6shnxvLY1XL2n2NgggIKY/LBpOs8lVrs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=bJCm/gUBKWDU+rW5/mObsBgnYIPHDt19II8TWPo1xfth5J7N2oma3gCCdYbq27ZcO hsKJepSI0Da9Dt8NcqaqgHmUqwxXTx9hDqTjcj7OYEIafRcbwCu+8PU9/GuWhPU/C+ aeqj5//d6UGvoG5dHLGQaz3Idq/izzMuwSYIEBQvsE0KrubkvMFq13AUikOXXJ/Z2i W4LUDwR3kgqOd8cMYMdypqXmeLkha2UQBBJ4FI5/BU++PZRY4EBFJ+xelLqPpGVWJt xa5leKh47UFhcvFM3C0iA3LVfR+8K/moRjsvVTEkf6YchH2K5s7WJQCY+VE9FJKQ+A TF86zmrPokz+g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WCLrF1sBPz9rxK; Mon, 1 Jul 2024 11:50:21 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: bash source code block: problem after ssh commands In-Reply-To: References: <25912.63830.726070.953843@gargle.gargle.HOWL> <18ba5e231e3.f989cde147196.3154436412643995109@excalamus.com> <875y2e2b9y.fsf@localhost> <18bb07473e2.1007b1565819307.6938164403009000496@excalamus.com> <877cmr2ke4.fsf@localhost> <18bb5337346.dfcd5ebb1139895.801408740607633332@excalamus.com> <18bd3d38ff3.115b786cb2560022.7704006411630399228@excalamus.com> <87fs169h7f.fsf@localhost> <18bd984270d.1048050a22954105.2819987720224062869@excalamus.com> <25942.29051.701153.391260@gargle.gargle.HOWL> <18bd9ea2f7b.b77346232985684.5614027527324280790@excalamus.com> <871qcod9ad.fsf@localhost> <18bdf538f2f.126bad4763316098.8581777358227217138@excalamus.com> <18be3214fb5.c07a71b73414174.856693588849825524@excalamus.com> <87frsu1yhc.fsf@localhost> <87y16m30xf.fsf@localhost> <877ce6l6uy.fsf@localhost> Date: Mon, 01 Jul 2024 09:51:59 +0000 Message-ID: <87tth9ign4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: , 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-Spam-Score: -6.60 X-Spam-Score: -6.60 X-Migadu-Queue-Id: 1F70773FEF X-Migadu-Scanner: mx11.migadu.com X-TUID: t5nL8+8zpQJ2 Max Nikulin writes: >>>> I do not see a great benefit of re-implementing session support via >>>> actual terminal. (I think we agree here). >>> >>> `shell' and so comint allocates "actual" pty. >> >> Are you sure? > ... > 123454 pts/0 Sl 0:16 \_ emacs -Q > 125104 pts/4 Ss+ 0:00 \_ /bin/bash --noediting -i > 129807 pts/5 Ss+ 0:00 \_ /bin/bash > 132172 pts/6 Ss+ 0:00 \_ /usr/bin/bash --noediting -i > > pts/0 is created by konsole, others are `shell' and `term' sessions > inside Emacs. > > My experience is that it is not easy to start a process without a tty in > Emacs. Eli will object. I guess not on Windows (bug#71081). But otherwise I agree. Although, I am not sure what we need to document and what we just need to rewrite. In theory, we may work around all the pty-related problems by simply running a script file (that possibly also echoes its commands to keep them recorded for user examination). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at