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 AN3MBUh2WGWzFQAA9RJhRA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 09:31:04 +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 AN3MBUh2WGWzFQAA9RJhRA (envelope-from ) for ; Sat, 18 Nov 2023 09:31:04 +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 DB41E430AF for ; Sat, 18 Nov 2023 09:31:03 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=N4WTGfm+; 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=1700296263; a=rsa-sha256; cv=none; b=LPMmDhKslEX/vAbEwgcjFyxGOAcis7oESt2bZdodJozKQfpJrqYjx8Fvb5HTt7qzK4i5eA V9s8sGQfVsA9L/rLBMEo+MjKtLIPSnsCIbanIpvx4vuR8uVMomoZPUoJhxTb+//5rQ7MTV +qDKtzQohMLeg7CJEbfRdOf8lYJzZszV6dhahe3nQ21sMnVk4wYMoxoN2wMHge+BaDrxS1 Kl4/s1lzeTYZsM96Vi+yrOz5gVOwjfXrRhukvDBct9guRND1Vh13V+VUIvFKeSX8NAgSUI TlLued7BIpsG8Ub8U8LEIt+1A/U0+bb0A5ql3JQcjydidkJfAqKqxiVzgiZ75w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700296263; 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=HDx1ZITI5XObTrujCTxaz5PzneGGwt3uZ+zpL+yJkZQ=; b=XN12l13KadLW96k7LhblItKQDKyCz6Jg63lAZ71I/FuvUosu0L6Q6JGMH96G0QQNC4GNVK zwM9HlEnNd+L/Cq6GDkqjv9jyWAzZ4VYtPcq/R5uvy4PShZdYNaGd3gFNJEil0KQMxFqkY K/IWH192MgFj7/WJy1/NHrYQCryMgHMSQovmBOMhsNJy6Zm/uwCkHI+mz9q0Bm/kgYko0Y /Ve3h7LTp8Q2FKB7HQifq54pdEW5630CJ2Wt0KDCVDMGGcSjyvz+hNGQhKPeccgbxLZtAQ syRKsIJ/mQsOWAEV3o5W2iv/HonUmehvNmDMLiUApO+A+l8ank5p4Eaw1YFxYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=N4WTGfm+; 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 1r4GiM-0008TT-3R; Sat, 18 Nov 2023 03:30:06 -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 1r4GiJ-0008Sw-9Z for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 03:30:03 -0500 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4GiH-0002wo-Jd for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 03:30:03 -0500 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2c871890c12so11280561fa.2 for ; Sat, 18 Nov 2023 00:30:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700296199; x=1700900999; darn=gnu.org; h=content-transfer-encoding:mime-version:date:references:in-reply-to :subject:cc:to:from:message-id:from:to:cc:subject:date:message-id :reply-to; bh=HDx1ZITI5XObTrujCTxaz5PzneGGwt3uZ+zpL+yJkZQ=; b=N4WTGfm+WmiT1mgxt1Qej37t7LD48leaPKglB6XlK6zJQAGwlAGpYC4fG6QkbvRdnu meIGGfzZMvFKnejlWBMBtTXdUKp3qJw6h/VNwRiZTqFIRr1i+BWlgyz6DAmwkC9584hf o/Fapv2yDy3MvtmZznIIWdwjc8Wz5UU9Kx5z6nrpPRepMWMcQjcluwCoa854khA+zRPE Z2OOBH4oxCf4y5bTS4YhNfbWPuj3bAz0KALhbvdxo/3zvTXWt69clnEMmmyjuVUu7Ema dVZzHawRpydtf35yNPyzEy/KTq/NU4eMC2EFWH6kqb4+YOJBMBUP51K6D3il5y63I8C7 uaPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700296199; x=1700900999; h=content-transfer-encoding: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=HDx1ZITI5XObTrujCTxaz5PzneGGwt3uZ+zpL+yJkZQ=; b=MuVhVARcElI7hqSlWayMxRnG0IYV1v+1/h/y9VLMXyCI6b7iwW92GwVLHsSprDxH85 tmg61euvnLnp3yKck3d3NXX6yIGxwUWotYvYtZU/pZa3aycNyZrguJ8ha4c+zcW8f5aS 2do+eL6OA8xQWDuSDLop1GZ+zuLDN1zDzX3h/ETVHnmUPQpaeiK4HfiMwOYrqPObWQDA kIxw1U6lyQsreKeOiGlJPnOq05ditc8KgMO0QQPBa4nw5axN/N2QY9kvL5xi/Wv48IOG sN1JBGqCC9Jd/O66m5rmm2Cvqulr2N9tRlpwkL8+AHj8D1AD6I4KKy5yPa8dmpZrF1ai R9qQ== X-Gm-Message-State: AOJu0YzPBLGpdvz+BShqk/NNjRA9liACLYaeFuTrPCT/Fv0Sl7xwVTFQ r1WV8c7gVG9wNJGdSLq34SM= X-Google-Smtp-Source: AGHT+IH1hOUOjXGarYe4C3SukfuxAt0fCyyHFlKZi3wsW24tB7Tinqx6w2lmN7uDynY+TN2EohmsLg== X-Received: by 2002:a2e:b816:0:b0:2c5:17c0:cd53 with SMTP id u22-20020a2eb816000000b002c517c0cd53mr1291857ljo.42.1700296198403; Sat, 18 Nov 2023 00:29:58 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id q11-20020a05600c46cb00b00403b63e87f2sm5645173wmo.32.2023.11.18.00.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 00:29:58 -0800 (PST) Message-ID: <65587606.050a0220.53c59.4864@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Sat, 18 Nov 2023 09:29:56 +0100 From: Bruno Barbier To: Matt , Max Nikulin Cc: emacs-orgmode Subject: Re: Forget about "bash -c bash file.sh" (Re: bash source code block: problem after ssh commands) In-Reply-To: <18be17bf975.d175a3ef3371770.6719662597118588806@excalamus.com> References: <25912.63830.726070.953843@gargle.gargle.HOWL> <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> <18be17bf975.d175a3ef3371770.6719662597118588806@excalamus.com> Date: Sat, 18 Nov 2023 09:29:56 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=brubar.cs@gmail.com; helo=mail-lj1-x22b.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: -8.40 X-Migadu-Queue-Id: DB41E430AF X-Migadu-Spam-Score: -8.40 X-TUID: L8xznlFhPoYZ Matt writes: > ---- On Sat, 18 Nov 2023 04:11:03 +0100 Max Nikulin wrote ---=20 > > > > bash -c bash /tmp/two-lines.sh > >=20 > > From my point of view it was a plain mistake in attempts to simulate= =20 > > the issue outside of Emacs. There is no point to concentrate on this=20 > > command. I tried to explain that it is incorrect usage of "-c" shell=20 > > option and what is the actual effect of this call, but I seems I faile= d. > > As an ob-shell user, my expectation is that execution within Org produces= the same behavior as outside of Emacs. This is why I've focused on the co= mmand. It acts as a guide for what is "correct." Maybe this is misguided = for a reason I don't yet see? IIUC, what Max is saying is that you should not concentrate on *that specific command* because that command doesn't do what you think it does. To reproduce, I'm personally still using: cat /tmp/test.sh | bash =20=20=20=20 which is, IIUC, what: (process-file "bash" "/tmp/test.sh") =20=20=20=20 is doing, that is: The program=E2=80=99s input comes from file INFILE Bruno