From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 2EQwA089V2VzLwAAG6o9tA:P1 (envelope-from ) for ; Fri, 17 Nov 2023 11:15:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2EQwA089V2VzLwAAG6o9tA (envelope-from ) for ; Fri, 17 Nov 2023 11:15:43 +0100 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 C23216507D for ; Fri, 17 Nov 2023 11:15:42 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Cdrw9lRH; 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=1700216142; 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=wmvWPCE1n8BxJrdC4Hp86q+gPuI5jX23rZsfj2ygcbQ=; b=SRp5pL+EpqyEHuujlAIXQrnx7Xokmv4G1wX8jqzpZRYQkfM8n+x6+s4NLjkIvBp7R+A7VO NmD6e0/Izosy/YPw0/uz7DWwjuk80/vgwhLwjx7XK3EzJhQy8mPLRCcz66Pg0ph801baeP eLXwQOaFc6npo0Usk1xbYgQg26QSPpB/gMqsF+gKyFkRQcR43SxI501UI68LNKlmZtVpWs QnhSWLPJucIPcm5FfNNcNlSs37esWBfLjW8XaEBjIXNfjttZ57CRaCO0i7x0Isa3RJR4s2 ebtsUV6knSgkLl6bWELhlASaUfbnc2TU+TJ3PTuT+pm/rg40cGwUV0XcrRhLxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Cdrw9lRH; 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-Seal: i=1; s=key1; d=yhetil.org; t=1700216142; a=rsa-sha256; cv=none; b=iEnzExXn5NfwhM8IujtLzn6rct4ov1s0BGZBdxaZu+Os6IkBbDze2flfkW8XdwEgmpL11B h411XIZOJvtrNyO/ShnfKLuK2BVVQk6JMehX1R8DlmMzLLjjt9BddQI6URajxQTIhA+quk q36yyZ/GnMiDYxVD8RQor6PsqHmyERGV0GfM0fGz0uLcarJfbt/exU0PoKR5KiuR3ysyKK s66103ljPSh8X2CqPOaxI31QUnhLjM631ELo53pLSL7ssEF6OEXB+pbw6Ps1n9SnObjjTH cbRFJ27hpJhX+pzD67WvS7XrptN8qVV9pMoxBLi15k1qfQpZjuAPcUaY2jrg6g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3vsF-0006PS-Sb; Fri, 17 Nov 2023 05:14:55 -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 1r3vsC-0006P4-Q0 for emacs-orgmode@gnu.org; Fri, 17 Nov 2023 05:14:53 -0500 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 1r3vs8-0001qn-RY for emacs-orgmode@gnu.org; Fri, 17 Nov 2023 05:14:52 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DA463240028 for ; Fri, 17 Nov 2023 11:14:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1700216082; bh=/s6m+4JQDZqC99iiyjNOcgAX8rkviVJQdSpcvggcbQY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=Cdrw9lRH7mXunt0pG3mC7saGgPejmIlR3e2JGc7OWaC0OfdiR9xKTIRROgiQ8x2n6 Lt0XS4Q5XKdurHUd5wNIcRmjGM58Hq76qA2iwkaJb1SqC72YVoQEhjBhn+uosX9DcG te4g1h1s3ZuwNVBD0gwAOfcBQHWaNCvQhCsRi5nah2xsLy1xNxogUudoOk9cK2fo2q HjAU5CqOwYpsN00s+eyYM6YzB0bTidOVt7UdG6+DN5NXqeUj3LhjS4lrV8dMCn0Ce7 uby8vqwkFR2dNR2YmP1Qzyae8wkGGU8IHEQ4tSNsP8r9jBTaYY5kafzhYjFZM/Gl6Q WHFWUnbSUzmtA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SWt756Wjyz6tvc; Fri, 17 Nov 2023 11:14:41 +0100 (CET) From: Ihor Radchenko To: Alain.Cochard@unistra.fr Cc: Matt , "emacs-orgmode@gnu.org" Subject: Re: bash source code block: problem after ssh commands In-Reply-To: <25943.14504.245343.443507@gargle.gargle.HOWL> References: <25912.63830.726070.953843@gargle.gargle.HOWL> <87bkcmlor9.fsf@t14.reltub.ca> <87o7gldb78.fsf@localhost> <25914.26693.101108.954656@gargle.gargle.HOWL> <87fs1xbis1.fsf@localhost> <25916.238.191509.652552@gargle.gargle.HOWL> <653f8a93.050a0220.f2202.5816@mx.google.com> <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> <25943.14504.245343.443507@gargle.gargle.HOWL> Date: Fri, 17 Nov 2023 10:17:10 +0000 Message-ID: <87sf54bs61.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: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -9.29 X-Spam-Score: -9.29 X-Migadu-Queue-Id: C23216507D X-Migadu-Scanner: mx10.migadu.com X-TUID: rag7G8nXU2LC Alain.Cochard@unistra.fr writes: > Ihor Radchenko writes on Fri 17 Nov 2023 09:22: > > > I think that I need to clarify here. > > Thank you. > > Well, thank you for _trying_: most of the discussion in this thread is > way beyond my pay grade. My reply was to Matthew, the current ob-shell maintainer. If you want, you need to examine ob-shell (`org-babel-sh-evaluate') and ob-eval (`org-babel-eval') code, and try to step through the code using debugger to understand technical details in thread better. > At the most basic user level (i.e., non lisp aware), why is it not > necessarily a bug if "something" does the expected in an X terminal > but not in an emacs terminal? I think Matt and I (and others) are on > the same page here, and he already essentially drafted the bug report > I would have sent (only better). WRT M-x shell, feel free to submit a bug report. I mostly pointed that the problem with M-x shell is not the problem you originally ran to. It is a different problem (also, we ran into it in the past). > What also confuses me is that it seems to me that, in the minimum > working example, you consider the ssh command and the read command as > equivalent. But I don't even enter the password when using ssh... I was only able to reproduce your problem with ssh asking a password. We are discussing the reproduced case. If you see problems with #+begin_src bash :results output ssh cochard@fruc.u-strasbg.fr "echo foo>foo_file" echo "bar" #+end_src even when ssh does not ask for a password, please provide more detailed reproducer that we can replicate locally without guessing your ssh config. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at