From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 2GwnNMxxWGXArwAAG6o9tA:P1 (envelope-from ) for ; Sat, 18 Nov 2023 09:11:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2GwnNMxxWGXArwAAG6o9tA (envelope-from ) for ; Sat, 18 Nov 2023 09:11:56 +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 989DE41232 for ; Sat, 18 Nov 2023 09:11:56 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=DGRUTTrQ; 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=1700295116; a=rsa-sha256; cv=pass; b=pITKMlzSZi+98ukQq5AJyoe5dU51lmLfme4LXMQjuGwTqM7hiRjk8JyPuyRMldKo0L3ZI3 AJuqqvkumK8iCtbYJZTZJOfIoZ0GOtW/yJVWhSKrj7Ov514EC/nNoGukxF8RW/ZhQS60f2 9XgEmbRnuDcWSHacSmfWZySI84YPrOKzkNMQCBg2fOJo23LBrlvN4thCteyCz1/rsKnv1n J5SQYvq3pGu1mM9Pipux96sjBNfV3jp9ZwBWamNtJsi+vJ9/+ON85hdOK3TyyLoSWa1BEB ynRqTtIzQuKflxaSfsSlgBczxODDyumgGcJvJQa2qXN8V4a2uK2Jz97m+teJHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700295116; 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=pUQoOt7Ea+SKR4+2r+2cblSldfMonZR1oFZ5dlfN6bk=; b=GrlXOu9LGAqbHFWCBfNO7IklyywJugX/ccOsVVfDMs7KVdRAJHYlxzKZws68t2hKETD9XC jzzEbsDmD+JAsOacpFWX93V3AraOb68BVWfckF0rvDZQ9JA3/B8VQH/iYqjTIVbj1th54E tH/vi1Esxp4hwgA9Ar68NW5v6efhOiqMj1lIKQ6PqRlGAWf/pDWdKE8aVEL0Ip7ZCDDRFo 90/We1rja9IJd7NQfydwt5fCiAD8eQSnODOyaxMgzLveWOFLrFK4INen3AMLFItNFaefAu +N0JHwRaltzd5BYfVI7FMNcqxkl95/3caC/tsp064JA+bZmZj02P/pSSe9lMmA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=DGRUTTrQ; 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 1r4GQK-0005js-VN; Sat, 18 Nov 2023 03:11:29 -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 1r4GQI-0005jh-Uu for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 03:11:26 -0500 Received: from sender4-op-o12.zoho.com ([136.143.188.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r4GQH-0002wA-AI for emacs-orgmode@gnu.org; Sat, 18 Nov 2023 03:11:26 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1700295082; cv=none; d=zohomail.com; s=zohoarc; b=mUASKA4G+jjGqOR6txpcalI0aGa8lquWcDb3oq2Mn+IYljV9dXOOzgvq5z0kLR22O8OQCQjdS6qWDJ/iNB0UDtuWX085W3z1qGJeT1Z2L9cWqfxoqjV8MNLvBUfy/5UEeFuPmPCdRX80zug4AFhKCrGe35uUie3BMRS3PMTWt3A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700295082; 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=pUQoOt7Ea+SKR4+2r+2cblSldfMonZR1oFZ5dlfN6bk=; b=cJa6H/x/9xj+FA8gn09K0dZG9RrwnsuafjvBxZp3uMkOT7DqGeJoi+S826uiTzRm7JFIMMukl8QqECsI1S/l7W4iZD//hqPmhZYN0fJqv90OVUtfmlAfj3jpAw9D4DFOT6DgWTwNN2IF6hpJSKWBqASxiQuK/nvDSRpj7v6+zF0= 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=1700295082; 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=pUQoOt7Ea+SKR4+2r+2cblSldfMonZR1oFZ5dlfN6bk=; b=DGRUTTrQkEKj84w/BQaLQW31MMuQtiSjOToGg6XU8n1AoPkZRVBLZHgYtT9SZVjb Lw5+XyrJfA/RGy5wKjNbTClD5OuXKC8UTolc9/rvDQ31zCEp2meU+CqLv1kl1xPCk3/ TfPNXkIRi6tAgCNquRXJHqQgS6CvNuN6B+Sq+9/I= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1700295080333161.82366811771226; Sat, 18 Nov 2023 00:11:20 -0800 (PST) Date: Sat, 18 Nov 2023 09:11:20 +0100 From: Matt To: "Max Nikulin" Cc: "emacs-orgmode" Message-ID: <18be17bf975.d175a3ef3371770.6719662597118588806@excalamus.com> In-Reply-To: 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> Subject: Re: Forget about "bash -c bash file.sh" (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.12; envelope-from=matt@excalamus.com; helo=sender4-op-o12.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_H5=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: , 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.58 X-Migadu-Queue-Id: 989DE41232 X-Migadu-Spam-Score: -8.58 X-TUID: bxTOIrgLtX53 ---- On Sat, 18 Nov 2023 04:11:03 +0100 Max Nikulin wrote --- > > bash -c bash /tmp/two-lines.sh > > From my point of view it was a plain mistake in attempts to simulate > the issue outside of Emacs. There is no point to concentrate on this > command. I tried to explain that it is incorrect usage of "-c" shell > option and what is the actual effect of this call, but I seems I failed. 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 command. It acts as a guide for what is "correct." Maybe this is misguided for a reason I don't yet see? I concluded that the command is not "what Emacs does" and therefore isn't a valid source of "truth". I agree it's not worth concentrating on it further.