<div dir="ltr"><div>I found a strange behavior by bibtex that I am wondering if it's a bug. I have the following structure</div><div><br></div><div>-- dir/</div><div>    |--- ref.bib</div><div>    |--- dir2/</div><div>-- main.tex</div><div><br></div><div>My main.tex file has the content</div><div><br></div><div>\documentclass{article}<br>\begin{document}<br>\nocite{*}<br>\bibliographystyle{acm}<br>% \bibliography{ref}   % This works<br>% \bibliography{dir2/../../dir/ref}  % This works<br>\bibliography{../dir/ref}  % This does not work<br>\end{document}</div><div><br></div><div>I also have BIBINPUTS set to "./dir". </div><div><br></div><div>Note that I use a relative path starting with ".." to specify that path (the example is highly artificial to illustrate the issue, I know that what I am doing here doesn't make sense).</div><div><br></div><div> Compiling with `pdflatex` and then running `bibtex`, I get that `ref` cannot be found.</div><div><br></div><div>Note that specifying other paths like "ref" or "dir2/../ref" or "dir2/../../dir/ref" works as expected. So the problem appears only when the path starts with `..` (or `.`).</div><div><br></div><div>I attach an archive with the structure and a file `run.sh` that contains the command and would illustrate the problem.<br></div></div>