I'm wondering, why my minimal example (in file shebang.tex)
%& -job-name=test
\listfiles
\documentclass{article}
\begin{document}
Hidiho
\end{document}
will always (no matter if using latex, pdflatex oder xelatex) compile to shebang.dvi/pdf and not to test.dvi/pdf. Are shebang-lines deactivated?
Edit: I just found out, that it is something with encoding: Using MikTex in Windows on the file encoded in ISO-8859-15 it is working - but not with encoding UTF-8 - which I like to use.
Under Debian Linux with texlive, no matter which encoding it is not working.
Maybe one needs another symbol after the percent-symbol?
The questions seems to be somehow related to %& magic line has no effect: But there is also a difference: Running the command xelatex -parse-first-line shebang will also produce shebang.pdf. In the log file, there occur those lines
%&-line parsing enabled.
**shebang
(./shebang.tex
\openout1 = `shebang.aux'.
showing the flag being recognized - but the job-name not working.
%. Edit: Yes, that looks different... Again, perhaps it's not related, I don't know how the shebang is checked, I can imagine that if it's some unicode character and not "really" a percent sign (ASCII character 37), this would cause issues... – Roelof Spijker Jan 31 '12 at 10:00%&? – Herbert Jan 31 '12 at 10:35