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 QGnrONgitV+LUgAA0tVLHw (envelope-from ) for ; Wed, 18 Nov 2020 13:34:16 +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 8HLMNNgitV/lNQAAB5/wlQ (envelope-from ) for ; Wed, 18 Nov 2020 13:34:16 +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 416D09404C2 for ; Wed, 18 Nov 2020 13:34:16 +0000 (UTC) Received: from localhost ([::1]:39692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfNbC-00009w-Ry for larch@yhetil.org; Wed, 18 Nov 2020 08:34:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfLjh-0001rZ-DM for emacs-orgmode@gnu.org; Wed, 18 Nov 2020 06:34:53 -0500 Received: from smtp01.cbsolt.net ([185.97.217.40]:57661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfLjf-00058r-IN for emacs-orgmode@gnu.org; Wed, 18 Nov 2020 06:34:53 -0500 Received: from [192.168.44.113] (d54c2ea12.access.telenet.be [84.194.234.18]) (Authenticated sender: robby.kiggen@essential-it.be) by smtp01.cbsolt.net (Postfix) with ESMTPSA id 4CbghL1ZnZz21bB for ; Wed, 18 Nov 2020 12:34:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essential-it.be; s=qbm1807114609; t=1605699282; bh=yN2c/CihF71AipJlRPZu6I3phztQqJa1XEA+lHnC+5o=; h=Date:From:To:Subject:From; b=m+iR5GKGKE+Wb4yaxNmhFKHuzJwNWiFMhonoGZgBsTvSe9PmBUGi5mOLs/K8dxDyg UNItTn869mM7E3C3LWTbeLIDKJXi4guj+D/tW9ThsfjbVRIt9YOEN12Tq2SPjh2MBO iq5lM8/3O1621owNrhIdmtP0bexy80KV87IBSoy4= Date: Wed, 18 Nov 2020 12:34:40 +0100 From: Robby Kiggen | Essential IT Message-ID: <186354732.20201118123440@essential-it.be> To: emacs-orgmode@gnu.org Subject: Variables not set during tangle of sh code (org 9.5) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.97.217.40; envelope-from=robby.kiggen@essential-it.be; helo=smtp01.cbsolt.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/18 06:34:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 18 Nov 2020 08:33:05 -0500 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-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=essential-it.be header.s=qbm1807114609 header.b=m+iR5GKG; 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-Spam-Score: -1.21 X-TUID: j2VX2S3PjdL0 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. I tried this with an emacs block and that seemed to be working. The following block: #+begin_src emacs-lisp :var data1=8 data2=16 :tangle test.lsp (message "data1:%S, data2:%S" data1 data2) #+end_src Was tangled to: (let ((data1 '8) (data2 '16)) (message "data1:%S, data2:%S" data1 data2) ) This leads me to believe that there is a bug in ob-shell.el. -- Best regards, Robby Kiggen | Essential IT