I am trying to use TikzEdt, an editor for TikZ graphics. For some tasks TikZ needs to call other commands so I tried to enable this by the parameter --shell-escape passed to lualatex (on Windows, MiKTeX 2.9). Strangely this fails to enable the feature. After some fiddling around it turns out that it even fails with this MWE:
\documentclass{standalone} \begin{document} \write18{echo SHELL ENABLED} \end{document} TikzEdt appends the switch and calls lualatex test.tex --shell-escape which does not seem to work. The same command with pdflatex works nicely. It turns out that other than in pdflatex the order of arguments seem to play a role in lualatex, lualatex --shell-escape test.tex runs nicely. Unfortunately TikzEdt only allows to append switches not insert switches. Is this a bug in lualatex or is TikzEdt using a wrong assumption?
--helpflag gives us the hint, "Any remainingCOMMANDSare processed as pdfTeX input, afterTEXNAMEis read. If the first line ofTEXNAMEis%&FMT, andFMTis an existing.fmtfile, use it. Else useNAME.fmt, whereNAMEis the program invocation name, most commonlypdftex."pdflatexandlualatex(I got the same results), so flags really should come before the filename.:)