<div dir="ltr"><div>I have just tried on Linux and found that it depends on the way how the file name is specified, namely whether foo.tex is given including the extension or only foo:<br><br>$ xetex --output-directory=./dynamic-content foo<br>This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xetex)                                                            <br>entering extended mode                                                                                                                            <br>(./foo.tex [1] )                                                                                                                                  <br>Output written on ./dynamic-content/foo.pdf (1 page).<br><br>$ xetex --output-directory=./dynamic-content foo.tex <br>This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016) (preloaded format=xetex)                                                            <br>entering extended mode                                                                                                                            <br>(./dynamic-content/foo.tex [1] )                                                                                                                  <br>Output written on ./dynamic-content/foo.pdf (1 page). <br><br></div>I have also tried luatex, tex, and pdfcsplain and all of them behave identically.<br><br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br><div class="gmail_quote">2017-01-14 15:41 GMT+01:00 Philip Taylor <span dir="ltr"><<a href="mailto:P.Taylor@rhul.ac.uk" target="_blank">P.Taylor@rhul.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If XeTeX is invoked on file foo.tex specifying --output-directory=../dynamic-<wbr>content,<br>
and if there is also a file ../dynamic-content/foo.tex, then XeTeX will process that file<br>
rather than the file which it was instructed to process :<br>
<br>
> \message {This is the intended foo.tex}<br>
> \end<br>
<br>
<br>
> This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016/W32TeX) (preloaded format=xetex)<br>
>  restricted \write18 enabled.<br>
> entering extended mode<br>
> (../dynamic-content/./foo.tex This is the unintended foo.tex )<br>
> No pages of output.<br>
> Transcript written on ../dynamic-content/foo.log.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Philip Taylor<br>
</font></span></blockquote></div><br></div>