Colton Lewis via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: Hi Colton, > 1. Create an executable script ~/test-bin/test.sh > 2. emacs -Q -l tramp-integration > 3. Eval the elisp snippet: > `(setenv "PATH" (concat (expand-file-name "~/test-bin") ":" (getenv > "PATH")))` > 4. Start eshell > 5. test.sh > 6. Observe command not found error I've fixed this in the emacs-28 branch of the git repository, will be merged to the master branch next days. Do yo have a chance to test? As reference, I've appended the patch. It isn't known yet whether there will be another Emacs 28 release, so this change will appear in either Emacs 28.3 or 29.1. But you don't need to wait that long, the next Tramp 2.5.3.3 release on GNU ELPA will carry this patch as well. Best regards, Michael.