#2301 Asterisk inserted for aux file when using filenames with spaces

in-the-works
tex (2)
2015-01-16
2014-01-19
Speravir
No

With this simple minimal example

\documentclass{article}
\typeout{\jobname}
\begin{document}
\end{document}

saved as file with at least one space in the name such as “test file.tex” I get on a compile run the following output on command line with MiKTeX (loading of Babel and article.cls removed, marked with “[…]”):

C:\Temporaer\TeX-Test>latex "test file.tex"
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)
entering extended mode
("C:\Temporaer\TeX-Test\test file.tex"
LaTeX2e <2011/06/27>
[…]
test*file
No file test*file.aux.
("C:\Temporaer\TeX-Test\test file.aux") )
No pages of output.
Transcript written on "test file.log".

A file “test file.aux” is correctly created.

The bitter part here is, if one uses glossaries, it asks for \jobname, and so inherits this for the makeindex style file, because into “test file.aux” this line is written

\@istfilename{test*gloss.ist}

Hence later one will get the error message Index style file test*gloss.ist not found. (Found this out while testing for other reasons. I usually do not use filenames with spaces.)


For comparison – compiling the same with TeX Live works (again, some lines removed):

C:\Temporaer\TeX-Test>latex "test file.tex"
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/W32TeX)
 restricted \write18 enabled.
entering extended mode
(./test file.tex
LaTeX2e <2011/06/27>
[…]
"test file"
No file "test file".aux.
(./test file.aux) )
No pages of output.
Transcript written on "test file.log".

The aux file is created correctly, then.

Discussion

    • labels: --> tex
     
    • status: open --> in-the-works