Subject: bug#15386: 24.3; [Eshell] Second completion unsuccessful if equal to first

From: Stefan Kangas <[email-masked]>
Date: Wed, 28 Oct 2020 01:21:06 -0700

Joost Kremers <[email-masked]> writes:

> Starting from `emacs -Q', Eshell cannot complete a directory if the
> completion target is on the same line before it:
>
>     $ ls ~/Dropbox/ ~/Dro
>
> does not complete, even though there is a completion target. The
> following *does* produce the correct completion:
>
>     $ ls ~/Dropbox/Work/ ~/Dro
>
> The following, however, does not:
>
>     $ ls ~/Dropbox/ ~/Dropbox/Work/ ~/Dro

(This was reported 7 years ago but unfortunately never got a reply at
the time.)

I can reproduce this on current master, using emacs -Q.