[Bash-completion-devel] [Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1064bb1c14e2c86c69e58e3fa30f481a79286f59

Ville Skyttä ville.skytta at iki.fi
Sat Nov 28 18:35:32 UTC 2009


On Saturday 28 November 2009, Freddy Vulto wrote:
[...]
>     The faulting parameter expansion ("${tmpkh[@]//\"/}) actually isn't
>  necessary anymore, since eval is done now, so it is removed.

Maybe it's not necessary, but simply removing it breaks quoted entries 
starting with a ~ for me on bash 4, for example things like:

	UserKnownHostsFile "~/foo"
	UserKnownHostsFile "~/bar/baz quux"

Either of "${tmpkh[@]//\"/}" or "${i//\"/}" on the next line fixes it.  If the 
former breaks with bash 3, maybe the latter wouldn't?



More information about the Bash-completion-devel mailing list