From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MCOPIuUmOmUW7wAAauVa8A:P1 (envelope-from ) for ; Thu, 26 Oct 2023 10:44:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MCOPIuUmOmUW7wAAauVa8A (envelope-from ) for ; Thu, 26 Oct 2023 10:44:21 +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 CAFD762EEB for ; Thu, 26 Oct 2023 10:44:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YEqcFpEm; 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=1698309861; a=rsa-sha256; cv=none; b=lmYK952dqLG35YeshVYf7VUV1oTE83s9Bz7vFJTFzcrftdTqsXYOYwriAoQ7+6AkZHiFcU eZd45qDcAjTS7PXeON6CzmIsBk0E5S5intjnUHWusoL04epBV2OE0NnEyENQS/2rVzvB0f qcuulXOh6JUMYBiDYsbcvMXx3tiQ/v/DpfbGECWpPnHlPpUI6nV89bX99C8/lt/242ZlGy 7CvhX93rtP7hE07xjCenqEeDgV96IrtJpQeJdDoaVKDcB+b3uz8ZJ9IXJOcVKEGqGK5ftr aw7U6I3Eu69QiwxnsL6I/u3F/5/IC/gi6S4fKWxKvhxRezlgMl1CIhM1KHQE6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=YEqcFpEm; 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=1698309861; 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=eHO3xgBDXv6sbYNN6dHtGCe/IJy4J6e67jVD0s/fmlo=; b=pWpgwr4f0oXFkFGSkFgLfXpH5/DNwIz8EnG5LxnvnUkNisqz3pmr6fsFaLN3zFbQi7VLp7 J3sPhSDu+ttVWbyhyzZQQjLJu5FRz7WLvQlM/HfSYtxBOE8Xcv2N2q/B+kG5EHRogRuURt EGP9Jzes3xg5qZOX4LXvbCiylbuV/Wy6FpWHua+AYFd4APpBoqKfAHIFJfgTZF+D2OsF0X V3GfJuf9UZHjkwEYt7e28iNidjBbQMoZUruxGI4ublSQuBARE/HAgKit9vrt4dVURzGPle dBXpiVH5G8YvwBBN1wnbB4Mb9yzcqsGtYlYyyNBluitNeORdoWHLyjiNQuqKgw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvvxh-0005mG-Jv; Thu, 26 Oct 2023 04:43:29 -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 1qvvxg-0005m2-Pd for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 04:43:28 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvvxe-0000YC-Fg for emacs-orgmode@gnu.org; Thu, 26 Oct 2023 04:43:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BEA2F240103 for ; Thu, 26 Oct 2023 10:43:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1698309803; bh=rxR7//50pBDolZZWz9JUG57riKpi5K7kwZaZvUFvrVw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=YEqcFpEmw4R7InF2EgOv56Cw3A8Lq1QoPQet6fcZEFxG0iwia1s5vSrpgVUKkZZSJ dWf9FjQwKGT01noxNUw8sRL21AgIN0W2c5y2OQ+JpvQKHrSzYovWymKVhN4XH6itgq ot1mGUl+gQWuwT5oqNmNFOBuv3ObAgtqsZEBm9+Vv4B9Op3UFndSlFqCwYXHNOSR9X DwFHPQhbHXexrSZdmghkTSAu4I7o3i2fBOKjuNGiprJNVA6Pplvmyv9xrFRd8VZRHA 4nLpoX/EClioDSNwugVet36/8Vsq+spKatGc9oWdTpyfhno1C5eONRWuctF+xuSdKa QYLljSxzuXlSg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SGK7t3Wy2z6ty7; Thu, 26 Oct 2023 10:43:22 +0200 (CEST) From: Ihor Radchenko To: Leo Butler Cc: "Alain.Cochard@unistra.fr" , "emacs-orgmode@gnu.org" Subject: Re: bash source code block: problem after ssh commands In-Reply-To: <87bkcmlor9.fsf@t14.reltub.ca> References: <25912.63830.726070.953843@gargle.gargle.HOWL> <87bkcmlor9.fsf@t14.reltub.ca> Date: Thu, 26 Oct 2023 08:44:59 +0000 Message-ID: <87o7gldb78.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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 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: -8.10 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Queue-Id: CAFD762EEB X-Spam-Score: -8.10 X-TUID: r0vz5eyTmNnX Leo Butler writes: > It looks like an issue in comint-mode and the way that it is handling > the temporary ssh session. This is not an issue with org-mode. > ... > Not working: > > #+begin_src bash :results output > ssh SSH-HOST 'echo foo>/tmp/foo_file' > echo $(uname -a) |tee /tmp/uname1.txt > #+end_src By default (no session), the above command should not use comint-mode. So, something else might be going on here. I currently do not have a setup to test ssh commands, so I would appreciate someone trying to dig why `org-babel-eval' apparently not returning the expected result. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at