Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in the filename handling that results in writing to the wrong file name if it contains spaces #284

Closed
FrankMittelbach opened this issue Feb 20, 2020 · 1 comment

Comments

@FrankMittelbach
Copy link
Member

Brief outline of the bug

In certain situation, e.g., when the document below is processed twice then the file written is not properly quoted so that a file with spaces is opening the wrong file for output.

Minimal example showing the bug

\RequirePackage{latexbug}       % <--should be always the first line (see CONTRIBUTING)!
\documentclass{article}

\begin{document}

\begin{filecontents}[force]{file here.txt}
  yes
\end{filecontents}

\newcommand\myname{"file here.txt"}
\sbox0{\IfFileExists{\myname}{\typeout{3: yes}}{\typeout{3: no}}}
\showthe\wd0

\end{document}
@FrankMittelbach FrankMittelbach added this to the hotfix milestone Feb 20, 2020
@FrankMittelbach FrankMittelbach self-assigned this Feb 20, 2020
FrankMittelbach added a commit that referenced this issue Feb 20, 2020
@FrankMittelbach FrankMittelbach added the fixed in dev Fixed in development branch, not in stable release label Feb 21, 2020
@FrankMittelbach
Copy link
Member Author

gone to CTAN

@FrankMittelbach FrankMittelbach removed the fixed in dev Fixed in development branch, not in stable release label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

1 participant