Few weeks ago when I did a fresh install of MacTeX 2020 and tried compiling some documents with command >>lualatex filename.tex
I would get this error: attempt to call a nil value (field 'cpath specification')
. Upon copy-pasting that error in browser, I got to this post that seemed to suggest that since TeXLive 2020, lualatex needs to be run with --shell-escape
. Though unlike the case there, I did not have any dynamic library that I was trying to load (the error occurred with pretty much any file, though all my lualatex files required an external .lua
file which also didn't in-turn require any dynamic library). At that time I tried using --shell-escape
and it had resolved the problem. Since then I have updated all packages once, and it seems like I no longer need --shell-escape
for compiling same documents. Did something change? the release notes don't have anything new, or am I looking at the wrong release notes?
As part 2 of the question: Does --shell-escape
make LuaLaTeX users more vulnerable to malicious code? Related to this: Now tex live utility asks a one time question to enhance security by clicking a dialog, what does it actually do?