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 uAGQC99/WGU+lgAA9RJhRA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 10:11:59 +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 uAGQC99/WGU+lgAA9RJhRA (envelope-from ) for ; Sat, 18 Nov 2023 10:11:59 +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 0E7C2438E1 for ; Sat, 18 Nov 2023 10:11:59 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=gJt8PkJT; dmarc=pass (policy=none) header.from=gmail.com; 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=1700298719; a=rsa-sha256; cv=none; b=tJe53PXRdJaiQiADKA0GB9b+3EAzThFsFuzaZf3zmzkf5XYkl5SQJhar/VSNLGNVxEeKhe lVS5fH/eZaeHITnNxY7tajK3EDgqZGnjHTWD+iv2Bj+dkw3VomUcwtk62zQwBb6o9kcLTw 77X4DXjIB36qD5BcPU2w6/7HZDmUQ6P8DPvfEKIfiKrkAjeNsfZnhewTO2n1yji+Xeh+xF 2wWXFH7yskACAE/YUvNGGlwr5knHM+pmG2cxj/Hx5jzNWjJVr1UeT6JEcSGR5gjx7NTLPX IJxPUFJkC96D/4fYkpi0mMSjTMjjffGLRAqlKRgp9M9NwGtoV1ntwtj2UhbGaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700298719; 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=9Nik4TfP43vao1p/v2PRBk4gjaJ+9efu6SFi9zMK4Zw=; b=LhAnjF2+Dw2qJRDgUODX4UB2d77yTHNhBYCnw/GkCwQ+ITj8SHhR4LndjYBEyKlvoFf28H XbdWqcWJHe2rPSBPQbJCJ2lqJPIHUIFMLzWxcQiGuG6pemPaDhgN94zBEIWKqdiZ8BTfo7 DYexcSfxV12QpdFyILQjgwYITXJQiwUM8IgkrjmD3HdYOZT+kqsiTzcJ/nyvB0m/DXUrT3 2TMetD86LtBG7OSg/djh5zMOyEoX2PokFAPMqIy5vVol/vNpf4rRCm714k4Hgc81cCCfQs 3j9gm4cKp6jaWPDut9ksio9AuE8fuiX3bT2XDzXna8vwXcS6JwKSy/NKaMc+GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=gJt8PkJT; dmarc=pass (policy=none) header.from=gmail.com; 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 1r4HMO-0008G9-CG; Sat, 18 Nov 2023 04:11:28 -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 1r4HMM-0008Fk-5B for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 04:11:26 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4HMK-00060A-9e for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 04:11:25 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40859dee28cso2643995e9.0 for ; Sat, 18 Nov 2023 01:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700298682; x=1700903482; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=9Nik4TfP43vao1p/v2PRBk4gjaJ+9efu6SFi9zMK4Zw=; b=gJt8PkJTTpQJSfmKuRrbBkuxZSxEpGqzrLLqA0RWhuPt9vaUeDnTEq73jkbD2JnsLJ lkOUJ0eScl3/Hxcm6XrV+fqZaJ6M1euf5pI6uRlSFrWGXdWdEI9k7FIdeCIeWFy/WalV fg15ODv+ZIaW+Pnm20woFhdT6jDT+sGgtjBYWqe+NnfvAU/eP7cga1yB5RnrqZoVqWQt 1fWQZYAyDG0qjflSYeZveg1/A7Vu3mjYbNBCtgicocbynBzyhN766unfRNtU2H8E++RZ Xw9McctzLVp5HvITgZ944rZlXnjsiouIcYUwKPQLCGtBjDg8H5YM3mwUu7+6W7nQhyic nDPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700298682; x=1700903482; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9Nik4TfP43vao1p/v2PRBk4gjaJ+9efu6SFi9zMK4Zw=; b=FY3WWYgZht8zBghjmsLNk9eDfD5H49pdUVNJD+mBPkpmKcOfKw1Yat5PryNgLgIVXT I1kgXkA6LH240KJs0UHw1feo0H8LHo0v59FakSVDmJjI7dpnFt4cRvpAPRIToZlhPEwt VnVYlyIbLad3s94OQ8jdq/kufRQm/rz4QjMjYgG9TNVkXQxO6h7u4srcfqlQsI7p7LaE 7DLkEQX1fLUq8EyA1pLmJShHE0vaYf8BcKMLCVS8ewk/vCODCZyISZI1J6Pe3kZO+OAB G2jlYhp5DtKELTAQiaGEHRdVua6Iuh2tLEPywhezthwR8jfYQr5yubzu3YebWhUyBmTv 7X0w== X-Gm-Message-State: AOJu0Yy7Wvbn0sRylVzHnYKe/7uv6DzJ1LIl/6a/dwMLScwS2tf6eLbt oBv+l0yHpAI4C2xDIf7Q069IqnDVpAw= X-Google-Smtp-Source: AGHT+IHe8WcL7NGwaCC0Qm9ooBkABEVAs5gFjZVOw7cGMfLrMbgViWfARyNfLjLBPka47OtTeTTJNA== X-Received: by 2002:a05:6000:156f:b0:32f:8248:e00 with SMTP id 15-20020a056000156f00b0032f82480e00mr1368961wrz.51.1700298682154; Sat, 18 Nov 2023 01:11:22 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id p10-20020adff20a000000b0033134ab9691sm4822027wro.57.2023.11.18.01.11.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 01:11:21 -0800 (PST) Message-ID: <65587fb9.df0a0220.b68a5.11a4@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Sat, 18 Nov 2023 10:11:20 +0100 From: Bruno Barbier To: Matt Cc: emacs-orgmode Subject: Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands) In-Reply-To: <18be1b0d843.da91946a3377707.4682124012173504521@excalamus.com> References: <25912.63830.726070.953843@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> <18be17bf975.d175a3ef3371770.6719662597118588806@excalamus.com> <65587606.050a0220.53c59.4864@mx.google.com> <18be199b332.dc8678323375095.5527629479819727464@excalamus.com> <65587bd8.050a0220.b1cf7.4544@mx.google.com> <18be1b0d843.da91946a3377707.4682124012173504521@excalamus.com> Date: Sat, 18 Nov 2023 10:11:20 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x32f.google.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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: -7.97 X-Migadu-Queue-Id: 0E7C2438E1 X-Migadu-Spam-Score: -7.97 X-TUID: 35snyoylwAMy Matt writes: > ---- On Sat, 18 Nov 2023 09:54:46 +0100 Bruno Barbier > > It's still not clear to me if this is "what Emacs does". However, that's the best I could come up with. > > Evaluating the following > > #+name: /tmp/test.sh > #+begin_src bash :results output > ssh localhost "echo foo>foo_file" > echo "bar" | tee /tmp/bar.txt > #+end_src > > does exactly what > > cat /tmp/test.sh | bash -c bash > > does. Both create a file "foo_file" containing "foo" on the remote machine and neither execute the second line. > > So, I would say that what happens in Org is the "expected" behavior. Agreed.