From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yAanFtlQBWB/HAAA0tVLHw (envelope-from ) for ; Mon, 18 Jan 2021 09:11:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AENuEtlQBWCbKAAAbx9fmQ (envelope-from ) for ; Mon, 18 Jan 2021 09:11:53 +0000 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 E09789403AE for ; Mon, 18 Jan 2021 09:11:51 +0000 (UTC) Received: from localhost ([::1]:47356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1QZh-0001xj-IH for larch@yhetil.org; Mon, 18 Jan 2021 04:11:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1QYP-0001q9-QG for emacs-orgmode@gnu.org; Mon, 18 Jan 2021 04:10:30 -0500 Received: from mail.tuxteam.de ([5.199.139.25]:44371) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1l1QYK-00087i-S6 for emacs-orgmode@gnu.org; Mon, 18 Jan 2021 04:10:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:Date; bh=nCogXebZEpv+Hf/OlzspSttrUJwibQ2jtqpWvOY2vXc=; b=fFQmnj35Jl4W96BsjDyKXfVJMjJbns78TB7yJllDnbjljl0QeyR0uIWxjlQuvmlleO+eTM9hJdTaBXtQHrvSaOVXVa5eOZUltdpHymoluyCUasjqJ3e7RgfQO6yTGkn1GfosbeuMOgpVt8JEjJkslsT1vB9zJlvHdHSelOnP6NF9Ko0ObeQOXmx72+RUhG5AU7/hLdneQotu1rvDKEyWNR7vrQttZ+Upe4jxdZ3FbHQklYWb93aQmEiKjty0Wdj8JwuUAWN0wMUghAs21z6pUK+IXPTUPrbaWs7iAxJshIOMZTxNv8NZTTJE4Tn5aTQU/owqY78udjjC1Jc15IdOag==; Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1l1QY6-0000LY-Ar; Mon, 18 Jan 2021 10:10:10 +0100 Date: Mon, 18 Jan 2021 10:10:10 +0100 To: John Kitchin Subject: Re: self-referencing babel shell code blocks Message-ID: <20210118091010.GA32436@tuxteam.de> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: HJ , org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tuxteam.de header.s=mail header.b=fFQmnj35; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E09789403AE X-Spam-Score: -3.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: sDulcFOJrASb --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 17, 2021 at 07:12:21PM -0500, John Kitchin wrote: > I guess this is what you mean: >=20 >=20 > * heading L1_12 > ** heading L2_37 >=20 > #+name: this-block > #+header: :var VAR1=3D(getenv "HOSTNAME") > #+header: :var VAR2=3D(message user-login-name) [more good stuff elided] Not the OP here, but... thanks a bunch! You just saved me a few hours of hair pulling. Cheers - t --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmAFUHIACgkQBcgs9XrR2kYPBgCeIfm4I+QVUHifNN5oUY7VNamx zgsAn0/tAuHQKqaE4AUwsLIbiUdd3bgQ =FJDE -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J--