From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32408 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: pandoc lua vs. pandoc Date: Mon, 27 Mar 2023 16:56:29 +0200 Message-ID: <87bkkez1b7.fsf@zeitkraut.de> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32922"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBMO7Q2QQMGQEFLYCHUQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Mar 27 17:01:11 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f63.google.com ([209.85.167.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pgoLP-0008MI-5u for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 27 Mar 2023 17:01:11 +0200 Original-Received: by mail-lf1-f63.google.com with SMTP id z20-20020a195e54000000b004e9609a300csf3538914lfi.2 for ; Mon, 27 Mar 2023 08:01:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679929270; cv=pass; d=google.com; s=arc-20160816; b=VO+rVGYZeTpch/nzAZluXxLaL5z1EpC0zGs4ZXs7epbCYA3AJ9DSQL3sSWrdAurZji NBLSmqRULxoR39dX7RqWTQ3HsCLqSEsAzRJ+eIKCOnFEL7XPvwKFxpUwV63nuDDt4D3i 1d12PO0kQIZo2LcwP8j2cS9lRt9C6vADTV1Q+L+6oQidOKHmva07T36mqooeHqIxdSg7 3ygdJf0zbNsKyFep4BsiWNndXJKHIaiWQ1+lsqzdIk87LMnEnxl/osnZfeBGw3afNHiZ HGcOSEXcbCeLdp4jltWGO/pP5EsC+P1vV/dKDenOOLE25Zg+YZ4bq3FlHhqBVHMYpwES 3U1A== 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:content-transfer-encoding :mime-version:message-id:in-reply-to:date:subject:to:from:references :sender:dkim-signature; bh=ITFwgQnfa7oP0l6BptRB/zzP3yRVBs0mJxItGZUxc5Q=; b=vY64KxAwbCZl1eKwTSfAEXGRvH7O0Iy2gNpPvuAGEiT4M7fFkSlHVf8cPIaPLmzYFC +EtDKI1zx20IRoSCzToh2+7plQxo6aJV7JZJmmK/JFYZSewtEp/11lKPrf9/5w1yBb1I zoMssumicWXzQ7BFVjlyfMk4v6YPID8By1zbbHmsfir594c8sPqzaS7YwwCeuZ7pIVBG uuvh3VA8WBxIuD9/iwaaIFkc7rJAIEojPeQhc1NGQ4PtAM/YT5CMx3OO7Ge3iDZKG1DX eL3/W+i0sjWDE5TMBj2bfNxSexfA6e3jR/RlqjiYZm4mJBOcStNrBy8gTFYpGoRbTduQ HnLQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1679929270; 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 :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:sender:from:to:cc:subject:date :message-id:reply-to; bh=ITFwgQnfa7oP0l6BptRB/zzP3yRVBs0mJxItGZUxc5Q=; b=c3nS+i9uCLBmqeCLO4r1sYJfRIKx9JXU032ExBEETkQlnZ7IW/RHq4TteCruSKkujo HpHS8N0xxU8njnc9MDLXcIUGras1JrR+fGKP/D/NYopgCkYau/1VkU3uKNkopqDkMTjj brSIpgreKwJbiXEsAWxEG8Bei875EfxsuWqgJph2UcomYdvJDddhDonR1oaIH5DY3l16 3S9ixUELsuiOWApmHznsjPvT2p39wML0SiHLmFINVGGMgoVi5gfCejFht9HSvdEpwsq1 pqVTX7DpYxZ24VR4rH/E/QNhcPUPs/+Vqq+q4cgxIPYYOSQLRTq X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679929270; 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 :content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=ITFwgQnfa7oP0l6BptRB/zzP3yRVBs0mJxItGZUxc5Q=; b=07YcIKJGu6XxU1U77RjiiTr9/qTCODDGx4DE7HRgDwAl25pQY/ARaXFogPfm6WbTNd AY40KdV80FV62Bk1FXSS4eBS6JCs3Tc7VaDaM5VAj9uzS39yGrVef2wSmpeLMJugEqeK YjdtSeUu9/vRAgVkQdOtAGSSjH90jMstfwMNMEZGpXyIdkktRasxdpKyFKfhKVuxqvxS sGsiDJRhLwrPTtqaghZHN1YgJ5Er+yTk0TloSGWkbw4lKdJPn3vVLXpnq62XXGOqwFxk fEGB/p Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AAQBX9ef2jIzFw+JM3pDMV97v8T7iTofqhmIwC8//FF4IccYTXZRNxbj KtGJfoC7ZNWbF/nDBMQHAzs= X-Google-Smtp-Source: AKy350ZVH5cn7wbUsOEBADirflfeSb6DglWJ3EQHl/tMNYHjc/FpBhHzZ2IA2wCwYsy/eZ3JOo1cjw== X-Received: by 2002:a2e:9d99:0:b0:2a5:fd80:fa6d with SMTP id c25-20020a2e9d99000000b002a5fd80fa6dmr530695ljj.2.1679929269433; Mon, 27 Mar 2023 08:01:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:1585:b0:4e9:c006:ce26 with SMTP id bp5-20020a056512158500b004e9c006ce26ls1581829lfb.3.-pod-prod-gmail; Mon, 27 Mar 2023 08:01:04 -0700 (PDT) X-Received: by 2002:ac2:5961:0:b0:4ea:f60c:4e29 with SMTP id h1-20020ac25961000000b004eaf60c4e29mr3464350lfp.20.1679929264121; Mon, 27 Mar 2023 08:01:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679929264; cv=none; d=google.com; s=arc-20160816; b=J31zuEqAQqFG96UoUSS6CxG8U/0UutwKoB+drZ6+rcaPEH7+Rd/B+xZFNwMhKuCopL darjskphVVLyHUbKzH3MXw79Zna8bX20KMwjgGpoUMpqtIsbTQ59os7DBV66WpOpUxUA ezlZ6rT7+9DQd0KV7AsU2AycdH6GJiJEdHHXOVQDvmR+vVmQYbSpUaInUaQNofrrmBnm pcWaS46dp7e5YYH9pf7rKWvT4qRbxgKgLVvvnxiXYiHFpOiOfWWCyON6Wt/EuYry/pHi EWUt5KeUdeYmsaHHgeDPhEBTVV4pGniL1btv24Vj6X07xHZwuadHGsIPp1dFkfS8RUd/ HKVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:to:from:references; bh=IwNTHo0S0oFcleyRcY9+0A3CyNZoYja5d1d9CdCYFPg=; b=ubi2F/OjBu7ZiGITSot06CwcgPXkz2+S/1iljMh9Ta5f/BlaX5jGTc53F0ZpeRc0GC pRXrY4Zd2SFAFRw8Z4WYVt6WKK9ilgM0VX/2MciAfES7SiBZYDHP65RJUzOCFyP0JAOZ PLrNt0JJiONZONaTNZIPQuPZw1+r8lUlDwihH0/HLl6eWsWRyH/Vs8pQQxa1wxOzRL1M avUzME8eKO8u+MwAfAi4gFNrwUygqN3kUf2KfjeYhUh2QldLljf9eTadDNV2rBO0990e D1E2RYhyrsDA2bMEf20bPPrQXUxztKLxrInuRw1VGhd3Asw9ak7MoqdVEVVYYgRPcLaU Um3A== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org. [80.241.56.152]) by gmr-mx.google.com with ESMTPS id i11-20020a056512318b00b004dc4bb412f7si1419014lfe.12.2023.03.27.08.01.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 08:01:04 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) client-ip=80.241.56.152; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4Plbbl0ZF3z9sfB for ; Mon, 27 Mar 2023 17:00:51 +0200 (CEST) In-reply-to: X-Rspamd-Queue-Id: 4Plbbl0ZF3z9sfB X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org 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:32408 Archived-At: BPJ writes: > Is there any global value which is guaranteed to have different > values when running as `pandoc lua` vs. running as `pandoc`?=C2=A0 > > 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? The `PANDOC_STATE` variable being nil might be a bug, I'll have to check that. The `arg` global should be a good indicator: it will always be set to a table value when running `pandoc lua`, but never in filters or custom readers/writers. --=20 Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 --=20 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 e= mail 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/87bkkez1b7.fsf%40zeitkraut.de.