[tex-live] tilde in file/folder names (again)

David Carlisle d.p.carlisle at gmail.com
Wed Oct 19 12:54:14 CEST 2016


~/ in paths in the commandline work Ok in cygwin texlive 2016

$ pdflatex ~/hello
                ^^^^^^^^
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016)
(preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(/home/davidc/hello.tex
^^^^^^^^^^^^^^^^^^^^^^
LaTeX2e <2016/12/01>



This does not work though (with quoted name)

pdflatex "~/hello"

$ pdflatex "~/hello"
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016)
(preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(/home/davidc/texmf/tex/latex/tools/.tex



If the engine does expand ~ can't do anything about plain tex, but for
any formats based on etex we _could_
fix this by using \protected\def~{...}  in the format so it is safe in
filenames.

Somewhat related to a parallel discussion elsewhere about use or not
of etex in latex.

David


More information about the tex-live mailing list