From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EK1kOPx5gmaFSQAAqHPOHw:P1 (envelope-from ) for ; Mon, 01 Jul 2024 09:42:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id EK1kOPx5gmaFSQAAqHPOHw (envelope-from ) for ; Mon, 01 Jul 2024 11:42:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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=1719826940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=r+VjBqhf/NptcI9dgeUb4+pR4toIqLeEFZt5f3NOw+M=; b=Qp6MUNs8JlEkPc6p5FdvwNI24X1OuMXwpvvL8o1K93X+VrAOsjVvz1+C98OaPd+j5aRya6 1pFnDEIxlQuyZNFpRj5rWVWhP3FyqBry+Uuw/rlxiMxNR3bRMYHJiHRHVCnViKpI4Wug7i w4PSIP4aIoXdw4kQjMQHn7wHNl22kLSZYayNhXESxLE7IsKGU+D+75ruZj6c1a62cb1xGw AdP1DX28XvO2rJ/jQ049tUSDCJ6KHGsWBnf//RUFiwIw3RUmvxBdrfKY7alb8iAMH2jBBK syr//vUKINrMvNgLKunR+8fWQCSQlSUQAEkyj/yXAGbETTSbJlHz4IE0uFj4cw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719826940; a=rsa-sha256; cv=none; b=BxWyJuVadfiAlm05kIRurNfeBkTvdLX9sL7UfcZRk+JpS2KPthXUCmIsaTpIoRN1CrJ47v nxgQdh6IWWlbWfafcMcX8ljsSiGLRcDeE+OWRrITIi5SJToYy/1S/w4Xhpjqs78Z8/Ttz7 /JMXAOj6DgId52LRk8rAj3Yq37NzcDvrcqtiDhl1n4TM5D0x2rOSYmnpva9VvzpZGpSG8V yPioUG2y0odtVqbPJLColOfmfDJGEQ+izpR4ALiHVnGw77LTQs2cHH+AehqY28l/P6sedV q57rkmb59yMbQpR3eQpAwPagXnYRgPpsjfcH7nstRvOcfd568mkNfWj2vNgftA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=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" 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 590B715037 for ; Mon, 1 Jul 2024 11:42:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sODXT-0007kX-OW; Mon, 01 Jul 2024 05:41:35 -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 1sODXS-0007kM-B9 for emacs-orgmode@gnu.org; Mon, 01 Jul 2024 05:41:34 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sODXR-0006hh-0I for emacs-orgmode@gnu.org; Mon, 01 Jul 2024 05:41:34 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1sODXN-00022D-4d for emacs-orgmode@gnu.org; Mon, 01 Jul 2024 11:41:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: bash source code block: problem after ssh commands Date: Mon, 1 Jul 2024 16:41:22 +0700 Message-ID: References: <25912.63830.726070.953843@gargle.gargle.HOWL> <87zfzr2ejj.fsf@localhost> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <877ce6l6uy.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 23 X-Spam_score: 2.3 X-Spam_bar: ++ X-Spam_report: (2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Queue-Id: 590B715037 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.77 X-Spam-Score: -5.77 X-TUID: ulV9V+Bpkg9+ On 30/06/2024 23:42, Ihor Radchenko wrote: > Max Nikulin writes: > >> On 30/06/2024 22:28, Ihor Radchenko wrote: >>> 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? ps wf PID TTY STAT TIME COMMAND 2269 pts/0 Ss 0:01 /bin/bash 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.