[tex-k] LaTeX segfaults with source specials and space in filename

Karl Berry karl at freefriends.org
Sat Jan 10 00:51:17 CET 2004

        latex --src-specials '\nonstopmode\input{foo bar.tex}'

You don't mention what version gets the seg fault.

In the version released with TeX Live 7 (2002), there is no seg fault
with that, "derived from TeX, Version 3.14159 (Web2C 7.3.7x)".  
Same with platex in TL2003, which is Version 3.141592 (Web2C 7.5.2).

Also, \input{foo bar.tex} did not actually try to read a file "foo
bar.tex" in any case that I tried, but just "foo.tex".  My recollection
is that kpathsea will handle the spaces, but TeX considers a space
token (catcode 10) to end a filename.  Not sure if there's an easy way
to read a filename with spaces these days.

More information about the tex-k mailing list