2017-10-20 10:29:04 UTC
I work on Texpad, a LaTeX editor for macOS/iOS and we have come across what we believe to be a bug. I have constructed a bash script to reproduce this bug (tested on macOS 10.12 with case insensitive HFS+, and on macOS 10.13 with APFS).
Running the script will create 3 pdfs in the /tmp/rootdir folder, all of which I believe should come out the same, however the 3rd pdf is missing some content. This is because a subfile has not been loaded when I think it should be. This happens when there is both a <somename.tex> file and a <somename> folder in the output folder, the <somename.tex> file will not be used. It does not happen if it is not in an output folder, and it does not happen if that <somename> folder is not there.
I have attached the script and also uploaded as a gist here https://gist.github.com/vallettaventures/484ff776d045422b07b369c905e2a3f3 <https://gist.github.com/vallettaventures/484ff776d045422b07b369c905e2a3f3>