From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Multiple var definitions in :PROPERTIES: block? Date: Sat, 12 Feb 2011 13:35:10 +0100 Message-ID: <87pqqxqtrb.fsf@altern.org> References: <4D515FA1.20607@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=49800 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoFJT-0003AE-Uh for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 08:15:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoFJS-000277-Pi for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 08:14:59 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:51815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoFJS-000228-Hq for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 08:14:58 -0500 Received: by mail-fx0-f41.google.com with SMTP id 12so3847486fxm.0 for ; Sat, 12 Feb 2011 05:14:58 -0800 (PST) In-Reply-To: <4D515FA1.20607@gmail.com> (Rainer M. Krug's message of "Tue, 08 Feb 2011 16:22:09 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode Hi Rainer, Rainer M Krug writes: > assuming the following: > > * Test case with two var definitions in :PROPERTIES: drawer: > :PROPERTIES: > :tangle: var.sh > :var: FIRST="test13" > :var: SECOND="test14" > :END: > #+begin_src sh > echo $FIRST > echo $SECOND > #+end_src > > #+results: > : test13 > > Only the first one is defined and exported into the code. I can reproduce this, but I'm not familiar with Babel enough to try to fix it. By the way, wouldn't "set" sound more natural than "var"? I feel like :var: FIRST="test13" is more redundant than :set: FIRST="test13" ... not a big deal of course, and I'm aware :var is also used as a begin_src parameter. -- Bastien