From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EJfPC/5JVGCXNQAA0tVLHw (envelope-from ) for ; Fri, 19 Mar 2021 06:51:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 3Py0B/5JVGALdgAA1q6Kng (envelope-from ) for ; Fri, 19 Mar 2021 06:51:42 +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 6A08226F9B for ; Fri, 19 Mar 2021 07:51:41 +0100 (CET) Received: from localhost ([::1]:55664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lN8yx-0000JQ-QA for larch@yhetil.org; Fri, 19 Mar 2021 02:51:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lN8y7-0000Ih-PQ for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 02:50:47 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:55021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lN8y5-0008WC-TJ for emacs-orgmode@gnu.org; Fri, 19 Mar 2021 02:50:47 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) for emacs-orgmode@gnu.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lN8y3-001220-3A; Fri, 19 Mar 2021 07:50:43 +0100 Received: from 130-133-144-203.mna.fu-berlin.de ([130.133.144.203] helo=hornfels) by inpost2.zedat.fu-berlin.de (Exim 4.94) for emacs-orgmode@gnu.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lN8y2-0000ou-RR; Fri, 19 Mar 2021 07:50:43 +0100 From: "Loris Bennett" To: Org Mode Mailing List Subject: Re: Sharing variables between source blocks without session References: <87o8fjscia.fsf@hornfels.zedat.fu-berlin.de> <87r1kf6xdq.fsf@ucl.ac.uk> <87im5owqa3.fsf@hornfels.zedat.fu-berlin.de> <871rccxxpm.fsf@ucl.ac.uk> Date: Fri, 19 Mar 2021 07:50:42 +0100 In-Reply-To: <871rccxxpm.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 18 Mar 2021 15:56:05 +0000") Message-ID: <878s6jprgd.fsf@hornfels.zedat.fu-berlin.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Original-Sender: loris.bennett@fu-berlin.de X-Originating-IP: 130.133.144.203 Received-SPF: pass client-ip=130.133.4.66; envelope-from=loris@zedat.fu-berlin.de; helo=outpost1.zedat.fu-berlin.de X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616136701; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=6ediy/ueRDF6aMzB2vvWUV/Hq4NRNDE3BNKzsopiWCQ=; b=fv3ASqSPFBQ1OT61nQcn3C+88rU+4TIN9w7xySs3nSbJ5+c9iecvXkRDCH1CRuwO3nm3vV plkRXmRqm23cNI76T24Uv/12NhCM0F/Udst+Ns+8tA1iQYfw7TFy0uXLV55Wn+RsCxJN7I zDhiIllx2uOSxEmZMlebU9Dst+rC8IZ+51wGJTimghAYyS+LyS9PS67GLGaeHEFBFojQB4 V1fGm1MKp3xqBj4ydL+rixGu2FrVoDJmwf/ZCVQDvmkQIOZwpQAGy45iEvEG8HwTok3h4H kh/VLziBqPy2/MrasJZkwMWJkdf0CG0QiSE5vORJ7Wm3iqsGtmRdyCtR+MWoLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616136701; a=rsa-sha256; cv=none; b=AkWhq+A/r6bGlxNibT8OgNcY+K6E3RSPiw6NkDu5mn8SdAU9qP5U+sXcD6kwWzpXLtMCXY yYCsajQ7DqcT+qvAlnfx8yZ6kz1rPjYpR51z9CYZKmviy+jqbqExwHUX+9IAsMpI3cdzpl u0nIyHKysCc0CEDGjmIe4YsqYU8N7fh68Wq4PuVV8Z0snjsL2mkWEontaiW5x6W42Bzule e6lO1gWOxKtAi6YNVqhvH6Yr8vMMKvXR5fAiRmyJtH95LSI5atyFg+16fElmlvVHCjH1LJ GAYUaeCWFNygT2dgDZrh3vgiGFDIQ4e9NHntRYHBRiOToZEgz339UIy6qmfHQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Spam-Score: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 6A08226F9B X-Spam-Score: -2.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: wnfrBxUQXiiY Eric S Fraga writes: > On Thursday, 18 Mar 2021 at 14:21, Loris Bennett wrote: >> Thanks for point out using 'header-args;' as property. However, if I do >> the following, the variable is unset in the shell script: > > Works for me. > > Make sure you reload properties by hitting C-c C-c on the property line > (or some other #+ meta line in the file). Also, you will need to put > the value of the user variable in "quotes", i.e. user="loris", for some > reason. OK, works for me, too now. The quotes were the important thing, thanks. For future me and the future in general, would it be a good idea to add an example to https://orgmode.org/manual/Using-Header-Arguments.html which illustrates the difference between strings and numbers, e.g. #+property: header-args:sh :var user="loris" fails=3 temp=17.1 #+begin_src sh echo user ${user} echo fails ${fails} echo temp ${temp} #+end_src #+RESULTS: | user | loris | | fails | 3 | | temp | 17.1 | ? Cheers, Loris -- This signature is currently under construction.