From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8Iz+JEu+T2MGPwEAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 11:07:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GDP+JEu+T2M7DAAAauVa8A (envelope-from ) for ; Wed, 19 Oct 2022 11:07:23 +0200 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 399C5CC9B for ; Wed, 19 Oct 2022 11:07:23 +0200 (CEST) Received: from localhost ([::1]:42550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol52m-0007qS-SI for larch@yhetil.org; Wed, 19 Oct 2022 05:07:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol4z9-0007pG-1g for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 05:03:38 -0400 Received: from mout01.posteo.de ([185.67.36.65]:57981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol4z6-0006gq-Kb for emacs-orgmode@gnu.org; Wed, 19 Oct 2022 05:03:34 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5D85C240026 for ; Wed, 19 Oct 2022 11:03:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1666170210; bh=wog11GHQwBqMoFbBRN4wv9BS873UnEuRq+l2yvDEtaY=; h=From:To:Cc:Subject:Date:From; b=lO1LRyBlfh1u0Ha7WoMeh4jNfdOVHQy60aPQxV7CXNeHHMCwiGZELeFNVKKKLOEh7 f7rxN1beXP/dWsdI39gjOe7+f3EvlOrFU4oqt4A84K8r/cGZGYuoPlF+14r/okMkiW vnAu2MxYczFoSNkcVajr9vQLgFUoA65d0LZI9sok3RbrNWuGGIVn9Osy39Mzbmpg99 KTB4yBCK+gDg54bdwYQ+VMA7QQoXXKpH23te+NGUJ/fM8975RBz1XaBnqV0xLZEq5y 6QPo+zTUdB7HWJNC1lLmsBwZU0Euua1+42HgcNcUV179o6Sgr0TzI9nDz8F9LfIqOJ BwyiglyeL+IrQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MslBl1PQDz6trh; Wed, 19 Oct 2022 11:03:26 +0200 (CEST) From: Ihor Radchenko To: Cody Goodman Cc: emacs-orgmode@gnu.org Subject: Re: [O] Quoting of noweb references and variable noweb function arguments In-Reply-To: References: Date: Wed, 19 Oct 2022 09:04:12 +0000 Message-ID: <87k04wb2wj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.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, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666170443; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Yoc3wMlvIz89EbG0ffxN+xPsSYOgJYAi4aWkRMc48qs=; b=cnFO7fITtOijFWC+iBh8DxsDoDeUvQNL4BcpiO7kFwmN8GI7LZJfEdSKDgTl5t6R3A3II1 8DyRj/WojFCBEB5EyhSqSPclCIv/SvVadZezdeXYiXnxKz2nTsieuv6GAckr8zcDVEW0lA zfVxj3ibIIFu15IDdtytzFkE4EWg6NK9GU1M8TzvyqYcI6B62jJ216n2HTvgmyA5Lj+sTE Yhf1pvuuY+8vKIlfny1vOevmPbVB10URzAHAaiRpWWoDtHVh70X7z6HecwRWTUHzHsnKX9 P1R4WFOrWB9p8uB2+5301UFdcY27MWNQMEipKedUiBRm5/UuUbFpJYXApWXGig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666170443; a=rsa-sha256; cv=none; b=KecE3BT+kJyyDo0XJfrDiBfygFXyHxCVzzxVmaTemwrHTvCgFU7nB8ROSvgaa/POnR4KVY DLoPg4+eKcwZcBynI91ZE1F4kVdkotdNSbB3ku0Zid+E1G7vtIx9tk1BU0Zw4Q2+j4bkRq BUDo7WNXrQV+0qwpew7F7DPZyTpRf/ZLc3B2ALxHHlokGvQbOUhEnXXj9I7suMw14VeWNi eOeXh968sL8DOHb6PUNXhWG9VzLlyrKYg0Bx1HnT1PjVWKZQ2DE+YoOMM9EqwzW8VGioYt edp5huZ69XxQfYWjdNXcRe3jyhH7lb2GeupTF89qHmJOzRmhJAgQTxR5X1DpvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lO1LRyBl; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=lO1LRyBl; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 399C5CC9B X-Spam-Score: -1.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: mGhseR1qQQLA Cody Goodman writes: > I'm having an issue with quoting noweb functions. Since quote is used to > signify a variable being passed into the noweb syntax function call I > cannot put a quote around theno web function call and end up with invalid > bash. > #+begin_src sh :noweb yes :var logValUserVar="user2" > logValUserPass="pass2" jqExpr="[]keys" > json=<> > echo $json | jq $jqExpr > #+end_src You cannot pass src block variables to noweb. It is currently not supported. And you cannot pass bash bindings to noweb. Noweb expansion happens before executing the bash code. It is not possible to know that bash assignments at that point. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at