From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32407 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: pandoc lua vs. pandoc Date: Mon, 27 Mar 2023 16:11:31 +0200 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000065a7bc05f7e25288" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="566"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBHOIQ2QQMGQELYIUKHY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 27 16:11:53 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f183.google.com ([209.85.166.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pgnZZ-000A7Z-9W for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 27 Mar 2023 16:11:45 +0200 Original-Received: by mail-il1-f183.google.com with SMTP id n9-20020a056e02100900b00325c9240af7sf5906564ilj.10 for ; Mon, 27 Mar 2023 07:11:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679926304; cv=pass; d=google.com; s=arc-20160816; b=GARwQ0IfKX2WbCuRnniUHSWn+KM2V58WsL59pywVKNlmMehas2ro4IsejIaZv+aoWs gABTkbsmjA3dmSEzOwo30ccpc51Dlweip3KE/ORKpgjchRQ2ofG4WAC+OZ51zP4fdCQn Bqv6eoOA0mkrwmR0W6xB8vsfPG8lnPv6PjSOMGjWx3eLdmgFdjF/Ips1UMCHZKL+Raso crlt1j31RhDrII79kdz/Apiz7fQf7PLNHhC7lnAQgZWO5m/SjhL0pQi7FvAgdbLW4yRi VXkxDh8y09T4Y00CuWS0t60CbI/zedQSsPDudSX0SipVDEmX20YBh1Xe4CZcRMsk7YdT 4eyw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=LcanVAShIJp5Wuvyzs4ZK8bNNnFYUeIwMwCbqrAf/s0=; b=V7YJTYIRXZlvOnAiRqpynDzUUk7fNi+8eJNN6t1OvQLTlT/HE4+R8K5YV7Pv9hfkuq Yp/1bbW50kZ0dRRqIePVnzcWeBRJ1aQey7ZjrsH+P626LtAgBh2o/34plsYKKRzrpor+ BrDTA+R+0Qfc9LSkr/neCqlZcrennKESRO9KTzohiVmYZJJCG+uraf1RIvTacGu1P4kW TrqMapjUD0RGu3GGicXU2lXITq8Rly2JcPZpVkeLWv8HCQ5gq3piXzjH21pKbvH0JRC1 ImR82cIDWQwGGDjnXyOZJbuF2mq9zXKWOMNThxRvITziQAD5UbvMjTUotCG5XR4kJzBS xzfw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ftX9kPdR; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1134 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1679926304; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=LcanVAShIJp5Wuvyzs4ZK8bNNnFYUeIwMwCbqrAf/s0=; b=AwzbhJZC9zeT3aqP70JvcCC7bq4vj7n6usiJeBJpDLsUoqFcTsAXcoTDSQkOH1BlGu RsHZDdLcbPsTI8oqZmDXMUYQjk1e2mKptIS0NyIC6Qh3cGiLjghDwC5bmMbBPs56yFwB jQnURI/25YuW27KsLRa71HpInoBNzZqp/zBy5hkhCoSWXX9LrAnHfVzjkju9EFwYuJMJ Ay5zpl+htaZZfV42NNDGyL91rPnzIe8TaADYtrnBjx9GckMLWx1In8rYVY/BQxD87UuV bihyaVGZnBhY/UBpsko46J3ksVWWei0RwXB1yMs0O79FElK49yVGojau6mRQTD0AqUSl mVlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679926304; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LcanVAShIJp5Wuvyzs4ZK8bNNnFYUeIwMwCbqrAf/s0=; b=oiN6blt51TYYcSOe73Z5MKOajuIzxBjmbawYsSMM5bxihJKh9aFUvJfn6e/r63gNHQ 09yZnknnndE2GiCsPHt6b6egN2SyEIZXa3rVfOKEDd37VYmx2HxWDgpYOdfWqBklLrHU X1vDrNLkMyjl9JJFpLaPqZniLZpVcMOseHURjT6Mn/jCrLIyA2b7cyQ4KsJCRhIuCGPb f5EzM8RtAd3HNUT9JQ+vlvyOKsS5vHXZXKHocw2d3nEQTrc2cQ+nBqqTXTGPMiWGV8ZZ D/1cdk6VQ/TUojASSxhOV+9l1tGZzScIOlruHnViOxZHN+T0Spzsekl04arMdm5h6X9X CiXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679926304; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:x-gm-message-state:sender:from:to :cc:subject:date:message-id:reply-to; bh=LcanVAShIJp5Wuvyzs4ZK8bNNnFYUeIwMwCbqrAf/s0=; b=Bf1PIcAmtdemAllpP7YZEaWIqHO+OIrW5bDv+9K0ZeVw+eny5T+WWWC3GZQ9hVIOAF XzqteX+WvWFh522OYBzhaJC9j7L8g7DpNA7uqLGNCYVHlxryyALbbZ6QNrRsrHqndqIE itWBzypr+4fB5b6UXSQawnz4CfDejDxaaQ9ASuDzDtFDc8aYEJ4JE8vyZPDfZ+qo1nLK 49swHkz0OBs0SFaz5y6uyU7pzWIsryb9O6ZhLXmVU5MN9J6uS8koUexvosXtAHuJn0f/ iXd8gUy2c6fOtZHYKFa0wck5VFqUDLjIcEV5DCNIYmaD6Zq9NK4NtizTB3yi4OJit Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9dx3+Y7UOmnyWG2m38/YZwDS6GG+1WwG3K90UEYcTnAM/2QNYJA +LblXtYk+fW4VQaeBRpAXFE= X-Google-Smtp-Source: AKy350bGmz1+eKquDapRZXfs/fE4wYccfa2H4VtO0SA6UFdqLdqoPrirK/w+NiHwX7k1j0mFvWI+bg== X-Received: by 2002:a05:6e02:1244:b0:325:f819:f68c with SMTP id j4-20020a056e02124400b00325f819f68cmr3208031ilq.3.1679926304129; Mon, 27 Mar 2023 07:11:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:15c2:b0:317:9a9f:53a5 with SMTP id q2-20020a056e0215c200b003179a9f53a5ls2483084ilu.8.-pod-prod-gmail; Mon, 27 Mar 2023 07:11:41 -0700 (PDT) X-Received: by 2002:a92:cf44:0:b0:323:338:cc2c with SMTP id c4-20020a92cf44000000b003230338cc2cmr8546283ilr.22.1679926301109; Mon, 27 Mar 2023 07:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679926301; cv=none; d=google.com; s=arc-20160816; b=JOlawmKypSlXt/kN5CWSBABgPnCAe/2Hqhp6J4DzNQleY5NeNpX7OLeahaL/mfAsrN /63KNKwoFH9gTg0OirOpq3/1LlNFFt9n1pZDP5s2KuqJQcJCmFH5tiSLF6CdL4hF3E8q ItxpzI60kCah5C9nfWABYlBV7cczOa+Ekja2RDRsGmRU1+nPOSHMtPkcdX0JN/M/Rz/A eHU0otW6iEhgVEk7vJ/mUxlnUqQlZrZcbpoCx/dgwraq9ntx4zlNkncCdzPUfQnvdyiW 08TTN1LeoXaEpVr4l09nX96zvM1/GTR6PqzCT1a9VuMRuD9sfcnfMIlvwPnlwElzuH0K cBGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=VOKZ1w3ZNguXNSqlIbqgJG6v42cdPjfEUg+rknM0e98=; b=McbZ8YDIZsYpV7s+ZCErK10v5cSfRSFxD5M3M5nOnuCC9ORcMx+Qll1aRDxBj9drrN CW/VV61dslZYX4XmfHGH2K6IGfbVf5TKQv3gBFBSu7gX3SEv1fOiGBxhC9zDadDeKyjl Gaha8EuOaxAT/JTFJ8NM2X7VEZCRsqOAZMhTeXsyB7GukZa8IOvLRXUxSbPBq/5V25Na Hn7CdE1Caiw+NSxOf9std6d+1lMtX4unnC8TImbECzZdLFAMwIMGeJFnav808BVb6EKQ /is2FrriddSRunffzVqUJcqYk80dHYTHZWvznD8RPEwtYVb2Zq22H2B7ZDUyAhTEHyp3 nh0g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ftX9kPdR; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1134 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com. [2607:f8b0:4864:20::1134]) by gmr-mx.google.com with ESMTPS id s5-20020a056e0210c500b0032616e0cb6asi45264ilj.2.2023.03.27.07.11.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Mar 2023 07:11:41 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1134 as permitted sender) client-ip=2607:f8b0:4864:20::1134; Original-Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-54184571389so172812557b3.4 for ; Mon, 27 Mar 2023 07:11:41 -0700 (PDT) X-Received: by 2002:a0d:ec52:0:b0:541:822f:af40 with SMTP id r18-20020a0dec52000000b00541822faf40mr5317330ywn.10.1679926300615; Mon, 27 Mar 2023 07:11:40 -0700 (PDT) X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ftX9kPdR; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1134 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32407 Archived-At: --00000000000065a7bc05f7e25288 Content-Type: text/plain; charset="UTF-8" Is there any global value which is guaranteed to have different values when running as `pandoc lua` vs. running as `pandoc`? My use case is a script which should work both as a filter and as a standalone script and print some info in the latter case. It seems like `PANDOC_STATE` is nil when running as `pandoc lua`, but is this always so, and/or is there a better option? -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDOC98BQ4UY%2BoKTMa4mfSgJMX8%2BJ0GfXk%3Dq3ebL-dFYYg%40mail.gmail.com. --00000000000065a7bc05f7e25288 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is there any global value which is guaranteed to have dif= ferent values when running as `pandoc lua` vs. running as `pandoc`?=C2=A0
My use case is a script which s= hould work both as a filter and as a standalone script and print some info = in the latter case.

It s= eems like `PANDOC_STATE` is nil when running as `pandoc lua`, but is this a= lways so, and/or is there a better option?

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://g= roups.google.com/d/msgid/pandoc-discuss/CADAJKhDOC98BQ4UY%2BoKTMa4mfSgJMX8%= 2BJ0GfXk%3Dq3ebL-dFYYg%40mail.gmail.com.
--00000000000065a7bc05f7e25288--