From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kCy9K89xVmV5cAAAauVa8A:P1 (envelope-from ) for ; Thu, 16 Nov 2023 20:47:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kCy9K89xVmV5cAAAauVa8A (envelope-from ) for ; Thu, 16 Nov 2023 20:47:27 +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 72B4C414D3 for ; Thu, 16 Nov 2023 20:47:27 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b="wRH/Yho8"; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700164047; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=j7814yi74RpSarPtYkOKIW9ZqekgdESGSba0JkudsNQ=; b=IJ7x8PFqyyhuaJnn/o4/csBit6f29opSsUjgGhvJ19UYctnJPJ3ifuINd2fjDuup/1boVh On6PfqhtVaGxJ+sRYKeXeJne4v9BINL/GdVJdWB4bDUGFPhQU2S4LZ+iZGkfmMwaQavlbN 16pBSe8KeLuldteYrhSmAJW7EdrfXAA3TdVkjydOlsfq5OmNPgMR0IfPAw6GoPJvgELwT8 tiLtRJuBfOk+fJ4qX0MJ9r4FjyoDdwqwo5Ob6g/Az38Ty4RhqUdbKKpEGEieQojH+augOK 9/ziE0YEfFmCOpAQqt0tngYLRgoR8ehGQHFXnOVzvxHkXiWYnuG9ADwSQYYETQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b="wRH/Yho8"; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700164047; a=rsa-sha256; cv=none; b=nS1nkM+BON2fbh3Hfid0WJoSebRZWKwJnKy6fR6isI7KeURjew1jqfrad0HHEQ4lWkD0yG N8Tq8ogBtT1upo84m6qjDg4JodbvdWwZrRfCN8dHHZPC6P5S8J6lqVDVc/aei3BqnAW/bl u6h/BOuiaxvS3d5F15v2ooxWTteuEsiyU8HodRHqJf1Yr/zO7lj6sLhJD0pC8EwKJlTt+e gsWMpWxYIaRL0RVPfgzT0K2ibbbalTu7IR6qiUXYagJMnsEucsCfzSs6ILjNVPwzEJ8bNu eJSgxwZe+2Y5lLlsxOzeqGt+VQElbmwv3eVr5X+HDV3BaVAZs/lMTGXN8u9BGg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3iJm-0000e8-39; Thu, 16 Nov 2023 14:46:26 -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 1r3iJc-0000dj-Sj for emacs-orgmode@gnu.org; Thu, 16 Nov 2023 14:46:17 -0500 Received: from smtpout01-ext2.partage.renater.fr ([194.254.240.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3iJa-0006un-9R for emacs-orgmode@gnu.org; Thu, 16 Nov 2023 14:46:16 -0500 Received: from zmtaauth01.partage.renater.fr (zmtaauth01.partage.renater.fr [194.254.240.25]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id CAD1F6433A; Thu, 16 Nov 2023 20:46:04 +0100 (CET) Received: from zmtaauth01.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTPS id 379AE1400D1; Thu, 16 Nov 2023 20:46:04 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTP id 23FD814033F; Thu, 16 Nov 2023 20:46:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth01.partage.renater.fr 23FD814033F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1700163964; bh=j7814yi74RpSarPtYkOKIW9ZqekgdESGSba0JkudsNQ=; h=MIME-Version:Message-ID:Date:From:To; b=wRH/Yho8WTRbqRy8s4ZwF9lcY6/20ykGqkYSc1gROLpbdVn21GiHUC0ZVTl2u7Lmg av0KLRzBm61+buYAHZQNJ1eUgbFwrBWMT/INWSddTBcUr0zxhBsUyilpgq69ZnQBWj PThUz6ZDSGL5q32TWd7BpUGDwReGFXrHuk1QrgtIIc9XZNc9tnyzoFyS9aClI9vtxw ezU7yWudTmmmcSLsAUSl0ZAGQJS+OO/3oLfcd94mwF9RbcWLGQhFeioiXi6E0qkEme mxMBrF/RBGdIQk263S0ik5C3KWH5DQ27J9aDzhBh5z7SAwdCdKMmmRwBlFCF5tlxHv /TqCNmcXCYmiw== Received: from zmtaauth01.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth01.partage.renater.fr [127.0.0.1]) (amavis, port 10026) with ESMTP id Y83LnZq0KRG6; Thu, 16 Nov 2023 20:46:04 +0100 (CET) Received: from 90.33.13.87 (unknown [194.254.241.250]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTPA id AA42A140352; Thu, 16 Nov 2023 20:46:03 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <25942.29051.701153.391260@gargle.gargle.HOWL> Date: Thu, 16 Nov 2023 20:46:03 +0100 From: Alain.Cochard@unistra.fr To: Matt Cc: "Ihor Radchenko" , "alaincochard" , "emacs-orgmode@gnu.org" Subject: Re: bash source code block: problem after ssh commands In-Reply-To: <18bd984270d.1048050a22954105.2819987720224062869@excalamus.com> 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> X-Mailer: VM 8.2.0b under 27.2 (x86_64-redhat-linux-gnu) X-Virus-Scanned: clamav-milter 0.103.8 at clamav03 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvkedrudefkedguddviecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucftgffptefvgfftnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgggtgffkfffhvfevufgjfhforhesthhqredtredtudenucfhrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrnecuggftrfgrthhtvghrnheptdevffdtuefhieefveegjefhffffffdtuddvgeefuddugffhtefgueffvdfhffegnecukfhppeduleegrddvheegrddvgedurddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdehtddphhgvlhhopeeltddrfeefrddufedrkeejpdhmrghilhhfrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrpdhnsggprhgtphhtthhopeegpdhrtghpthhtohepvghmrggtshdqohhrghhmohguvgesghhnuhdrohhrghdprhgtphhtthhopegrlhgrihhnrdgtohgthhgrrhgusehunhhishhtrhgrrdhfrhdprhgtphhtthhopeihrghnthgrrhelvdesphhoshhtvghordhnvghtpdhrtghpthhtohepmhgrthhtsegvgigtrghlrghmuhhsrdgtohhm Received-SPF: pass client-ip=194.254.240.33; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout01-ext2.partage.renater.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, NICE_REPLY_A=-2.193, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_MSPIKE_H3=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: , Reply-To: alain.cochard@unistra.fr 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: -7.90 X-Spam-Score: -7.90 X-Migadu-Queue-Id: 72B4C414D3 X-Migadu-Scanner: mx13.migadu.com X-TUID: xnh0zKDwAtlZ Matt writes on Thu 16 Nov 2023 20:03: >=20 > ---- On Thu, 16 Nov 2023 10:30:59 +0100 Ihor Radchenko wrote ---=20= >=20 > > Or we can make use of TRAMP as we usually do to access remote > > environment. IMHO, it is more reliable as TRAMP takes care about > > arranging all the Elisp FS interaction to work on remote system. > =20 > Agreed. Also, I wasn't aware TRAMP worked with shell block > evaluation. That's nice. >=20 > Sure enough, these both work: >=20 > #+begin=5Fsrc bash :results output :dir /ssh:user@localhost:/home/us= er :session *remote* > echo foo>foo=5Ffile > echo "bar" > #+end=5Fsrc >=20 > #+begin=5Fsrc bash :results output :dir /ssh:user@localhost:/home/us= er > echo foo>foo=5Ffile > echo "bar" > #+end=5Fsrc >=20 > Of course, both calls happen on the remote. >=20 > I wonder, would this have helped Alain=3F No (see below). > I'm admittedly a little confused about the original report, =20 >=20 > #+name: original-report > #+begin=5Fsrc bash :results output > ssh cochard@fruc.u-strasbg.fr "echo foo>foo=5Ffile" > echo "bar" > #+end=5Fsrc >=20 > Clearly, the ssh line is intended to happen on the remote server. > Was the echo "bar" intended to happen locally=3F Yes. (So I think that explains the 'no' above.) Then I'm confused about your confusion... Anyway, this gives me the opportunity to come back to the question of whether or not there is a problem with emacs itself (like some people here thought), and if some message should be sent to some emacs list. Again my argument was that the 2 commands copy/yank'ed in an emacs terminal don't work as expected, while they do if the same is done in an X terminal. I guess it is not important for Org, because workarounds have be proposed, but I think if there is a problem with emacs it should be reported, right=3F Thank you. --=20 EOST (=C9cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=E9 Descartes [bureau 110] | Phone: +33 (0)3 68 85 50 44=20= F-67084 Strasbourg Cedex, France | [ slot available for rent ]