Am 18.08.25 um 16:35 schrieb Thomas A. Schmitz:
On 8/18/25 3:10 PM, Henning Hraban Ramm wrote:
How would you resolve shell/environment variables like $TEXMFHOME or ~
($HOME) in Lua code?
How about os.getenv ( "HOME" ) ? It works in linux and macos, not sure
about windows.
Yes, but that means I must iterate over os.env and replace all
variables. An existing function would probably do the same (but probably
better than me).
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________