Subject: bug#20873: 24.5; shell command completion faulty

From: Stefan Monnier <[email-masked]>
Date: Mon, 22 Jun 2015 18:13:10 -0400

> I wonder if the following is the right fix?
[...]
> -		 (save-excursion (shell-backward-command 1) (point))))
> +		 (save-excursion (shell-backward-command 1)
> +				 (skip-syntax-forward " ")
> +				 (point))))

Could be.  I don't have time to dig into it right now, but another
option might be to change shell-backward-command instead.

        Stefan