From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GFtdG6q11V+oEwAA0tVLHw (envelope-from ) for ; Sun, 13 Dec 2020 06:33:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0CBXF6q11V/IegAAB5/wlQ (envelope-from ) for ; Sun, 13 Dec 2020 06:33:14 +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 6F35F9403EE for ; Sun, 13 Dec 2020 06:33:13 +0000 (UTC) Received: from localhost ([::1]:43920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1koKwR-0000Dz-AI for larch@yhetil.org; Sun, 13 Dec 2020 01:33:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koKvf-0000Dq-3f for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 01:32:23 -0500 Received: from out0.migadu.com ([2001:41d0:2:267::]:35798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1koKvc-0003PW-57 for emacs-orgmode@gnu.org; Sun, 13 Dec 2020 01:32:22 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1607841136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=f4gq1NkD4nQRr8GowKgJuIUD5kXEfE4qU0TgJWJ64qE=; b=bUJfflnh1ZicxlGxiZCzTXn19qy/egLGdZimPJE71d236iwFIgv7Vsv0UmAd2MLnza4HnO 5XyWlzeTktIJEbKxM9eKWBivGgN5hQjzFoJpfjoR9Pz2nqAExWcF94t3jPteWoUoXFAIkR mQ7+wxHDvy8S9aWeTs4SFiryBYf/uDbi5oK6e3DbvuPjb2INS/nDqA4zQVheGmS2oF4auB aVjdqXqZ2HTja9SGcdsBxSCKoAr4XH9cUa0uVPutjwEzk/lQiLsv3r8yW65dz+TFzZfqar NYRs9HPRtQvI+Qyvn6E8z4smQD95Pm9BrpZHDyJDUJ+cOZM9yzB2PdexA7brhg== From: Kyle Meyer To: Robby Kiggen | Essential IT Subject: Re: Variables not set during tangle of sh code (org 9.5) In-Reply-To: <186354732.20201118123440@essential-it.be> References: <186354732.20201118123440@essential-it.be> Message-ID: <87eejuusgh.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Date: Sun, 13 Dec 2020 06:32:16 GMT Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=kyle@kyleam.com; helo=out0.migadu.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, 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=bUJfflnh; 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: 6F35F9403EE X-Spam-Score: -2.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: oqFwpgzKES4d Robby Kiggen | Essential IT writes: > Hi, > > in OrgMode 9.5 it seems that the variables during the tangling of sh > aren't set/initialized. > > For example the block below: > #+begin_src sh :var str="Hello World" :tangle helloworld.sh > echo $str > #+end_src > > Gets tangled into: > echo $str > > Which means the str="Hello World" line is missing. My guess is that you haven't loaded ob-shell, as that's how I can reproduce what you report. After (require 'ob-shell), I see str='Hello World' echo $str