Subject: Re: bug#28096: 25.2; c-a-p/shell/ielm: Broken directory completion for directories that contain spaces

From: "Basil L. Contovounesios" <[email-masked]>
Date: Wed, 30 May 2018 14:44:35 +0100

"Basil L. Contovounesios" <[email-masked]> writes:

> I'm not familiar with the workings of shell, but it seems like it's
> trying to be smart about cd completion and falling a bit short.

After a bit more digging (see bug#11348 and bug#11607), it looks like
the culprit is pcomplete/cd.  I'm far from familiar with pcomplete, and
edebugging pcomplete-entries and pcomplete--entries did not reveal
anything obviously amiss to me, so my current workaround, inspired by
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=11348#26, is to:

(with-eval-after-load 'shell
  (setq shell-dynamic-complete-functions
        (delq #'pcomplete-completions-at-point
              shell-dynamic-complete-functions)))

-- 
Basil