Completing path to executable in Eshell removes the preceding path

What happened?

In Eshell, when completing the path to an executable in the command position, the text will be completed only as the name of the file, removing all of the path listed before it.

Screen Shot 2022-04-19 at 4.08.20 PM Screen Shot 2022-04-19 at 4.08.25 PM

What did you expect to happen?

Complete the executable name without removing the path before it.

Steps to reproduce

  1. Open eshell
  2. Type in the path to an executable as the first argument
  3. Press RET to company-complete it


  1. Does not reproduce in shell or when the path is not the first argument.
  2. Reproduces whether or not the executable is on the PATH.
  3. Reproduces in Doom + modules - your private config sandbox.
  4. Doom info is from M1 Mac, but reproduces on x86 Mac as well

System information

Loading data dump...

Looking into this further it appears to be likely an upstream bug rather than something Doom related – will report back on my findings if/when this issue is resolved

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.