This was discovered while investigating why minted doesn't work correctly in miktex.
This document fails in miktex when compiled with --shell-escape. The folder is not created:
\documentclass{article}
\begin{document}
\immediate\write18{if not exist blubfolder mkdir blubfolder}
\end{document}
The messages on the command line (""exist"" kann syntaktisch... ) indicates that the argument isn't processed correctly:
G:\Z-Test>pdflatex --shell-escape test-utf8
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6400)
entering extended mode
(test-utf8.tex
LaTeX2e <2017-04-15>
Babel <3.12> and hyphenation patterns for 76 language(s) loaded.
(D:\MiKTeX2.9\tex\latex\base\article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(D:\MiKTeX2.9\tex\latex\base\size10.clo)) (test-utf8.aux)""exist"" kann syntaktisch an dieser Stelle nicht verarbeitet werden.
(test-utf8.aux)
*File List*
article.cls 2014/09/29 v1.4h Standard LaTeX document class
size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
***********
)
No pages of output.
Transcript written on test-utf8.log.
A similar message can be seen for a shell command starting with a for loop.
In texlive the document compiles fine and creates the folder.
Should be ok now/
Has the fix also been added to miktex next? I don't get any updates there.
miktex next hasn't been update yet. I trigger a build tomorrow.