On 8/13/20 7:52 AM, Alan Third wrote: > I suspect the best solution here is to move the code at line > emacs.c:1623 to before emacs_wd is set. What do you think, Paul? It's probably safer to leave the code where it is, and to update emacs_wd if Emacs chdirs successfully. Does the attached patch work for you? If so, I can install it into the emacs-27 branch. (I don't use macOS so can't easily test it myself.)