public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* pandoc lua vs. pandoc
@ 2023-03-27 14:11 BPJ
       [not found] ` <CADAJKhDOC98BQ4UY+oKTMa4mfSgJMX8+J0GfXk=q3ebL-dFYYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: BPJ @ 2023-03-27 14:11 UTC (permalink / raw)
  To: pandoc-discuss

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1249 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-27 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 14:11 pandoc lua vs. pandoc BPJ
     [not found] ` <CADAJKhDOC98BQ4UY+oKTMa4mfSgJMX8+J0GfXk=q3ebL-dFYYg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-03-27 14:56   ` Albert Krewinkel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).