From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aLBiOd59WGVYTwAA9RJhRA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 10:03:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aLBiOd59WGVYTwAA9RJhRA (envelope-from ) for ; Sat, 18 Nov 2023 10:03: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 5FCF7437D7 for ; Sat, 18 Nov 2023 10:03:26 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=H9zuFBJt; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=2; s=key1; d=yhetil.org; t=1700298206; a=rsa-sha256; cv=pass; b=PD7Bb3mhNPKukfXeMFd9IU262kPjLk+lbx4bdkM5TxpKb8egZpKnKi+X95M69RiRIp6FV7 L/V48ohNxhI5cLNJdDwNtP6R9xzsr4NqMR6sXgo5afK4ecKVHIUmpjMWnWALjnZtDYagvN 4E+EdurhxcnkIkX0S10KdhdtMqWx5BpYM85qF/1d7F7Of180UOLsRs57IQwZmIvgtFi3Dt B5OP3Ft5h3PpthN6f1XCd0VIP0OQoZZMDrA+wWTEf4+LxrZ0VZCBOYQea140gi/+3in5bn AsF1kL4+GWFnIYI7zKLaTRwVz6IIwMEDoYJI8/7rsvaZz5ucDKWTOT6O0ud56w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700298206; 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: 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=K5F7yMMZZXj1soVHJO2+vIEVl3mGaQvhDRUGAABCk9w=; b=op22vTCFcwZgQGPAcYCg0tsNe5yz7hQ6/WOjB2ZN4Y/NOByrrwMRpRCdoGY5ralvUFS4wJ 9N5Bor6Dvbwu7dJ1/LZ/x/2kxssn4QZ0WSC7V8TRaZKGnUxpX6Kb0TcCS4NKNcJgUPrs/0 TG5V0EHrqwfWhCl+ql9eMK+Vm7HTCVXpRbW10HEcfF8zZEZyoKr86dBCIH19CDpUprPBtG AokrtgOA+icYRLXaVzVjYSTTPV/doBzH55qY/eYBPpipG/m7a/SobJqdvsuKlkpA8umueI 8ZKWzwZa/M9ZOtQULazusxwu+R/Mhm7qmfpfEkp9+Z3UA/0p+cESSBWcKTAOoA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=H9zuFBJt; dmarc=none; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4HE0-0002CG-59; Sat, 18 Nov 2023 04:02:48 -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 1r4HDw-0002BF-Ia for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 04:02:45 -0500 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4HDt-000252-QX for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 04:02:44 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1700298157; cv=none; d=zohomail.com; s=zohoarc; b=T6yehbkEBRB5O6JBlNR4Yvmm3Ev6xc4+vpE0RJjjZ/fXn9f/tY518++T0GOUVswaBHA2B63+5TWPdnoqAMI6SiWeaCp6bXm6wWuCQwtaj1QgJBgcOhu0ErdZX8xtqHSTC8cDYRlol66YM0EdTTwRK0YDLOTs6sk2R9SOKkRuNcc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700298157; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=K5F7yMMZZXj1soVHJO2+vIEVl3mGaQvhDRUGAABCk9w=; b=Vm7XYwaQeZo0HTpf/fVK8HLOzoE8bfG3mrMcFwUeYNq0muwrboEbVXUsdO7EnK+3zAuJfkDtdCWGoC1gwYhZlHN+s61RA7p6eR5WvqEfQQCqdkAXBvZcRcSh0CMlnfV8IPZeTPRAJqHLek05PGeclKjSzzDfF3P7KocJ8DiDXsY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1700298157; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=K5F7yMMZZXj1soVHJO2+vIEVl3mGaQvhDRUGAABCk9w=; b=H9zuFBJtyENVdalMUPlx4RJei7YrulHs9PABH3BASMjmMFk9oGzSR/lrQpRTEsAg +u1AkKfCqf35pVsO8Y1leLWNa8KrBJkspAtIT3SZ6LIyGIsRHHjWQd2VHu2BiAs2FTy tKrt/kl+uEjzsRwYRCrbVCW5NGUpBcx9CYILC7I4= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1700298156954150.6103469162873; Sat, 18 Nov 2023 01:02:36 -0800 (PST) Date: Sat, 18 Nov 2023 10:02:36 +0100 From: Matt To: "Bruno Barbier" Cc: "Ihor Radchenko" , "emacs-orgmode@gnu.org" Message-ID: <18be1aaeb83.126cf5eda3377058.5018223471158724397@excalamus.com> In-Reply-To: <65587383.5d0a0220.27bea.0b92@mx.google.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> <25942.29051.701153.391260@gargle.gargle.HOWL> <18bd9ea2f7b.b77346232985684.5614027527324280790@excalamus.com> <871qcod9ad.fsf@localhost> <18bdf538f2f.126bad4763316098.8581777358227217138@excalamus.com> <65587383.5d0a0220.27bea.0b92@mx.google.com> Subject: Re: bash source code block: problem after ssh commands MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.15; envelope-from=matt@excalamus.com; helo=sender4-op-o15.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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-Scanner: mx11.migadu.com X-Spam-Score: -9.37 X-Migadu-Queue-Id: 5FCF7437D7 X-Migadu-Spam-Score: -9.37 X-TUID: gFxF5wZFMFQ3 To clarify a previous typo I made. Everything I've written was also done using: 1. emacs -q 2. C-x b "*scratch*" 3. M-x org-mode 4. Execute #+begin_src emacs-lisp :results none (org-babel-do-load-languages 'org-babel-load-languages '((shell . t))) #+end_src This corresponds to Org mode version 9.6.6 (release_9.6.6 @ /gnu/store/xjrhyapm3zwgpmq5baz6m9kavz287jjj-emacs-29.1/share/emacs/29.1/lisp/org/) I had previously, and incorrectly, given my version used with my full init (which uses a different Org version). ---- On Sat, 18 Nov 2023 09:19:13 +0100 Bruno Barbier > It seems your SSH failed to connect. In that case, I cannot swallow the > second command; thus the command "echo bar" is executed. > > I can reproduce what you see on my side if I force the connection to fail: > > #+begin_src bash :results output > ssh WRONG_REMOTE "echo foo>foo_file" > echo "bar" > #+end_src > > #+RESULTS: > : bar Thank you! That makes sense. I forgot that without set -e Bash keeps evaluating when errors happen. Yes, once it connects, I get the same behavior as reported. Here is how I connected without a password prompt: 1. ssh-keygen with id_babel, , 2. cat ~/.ssh/id_babel.pub >> ~/.ssh/authorized_keys 3. chmod og-wx ~/.ssh/authorized_keys 4. ssh-add .ssh/id_babel