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

Freddy Vulto fvulto at gmail.com
Sun Nov 29 13:47:11 UTC 2009


On 091128 20:35, Ville Skyttä wrote:
> 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?

See commit a07b5c5.  I added a unit test for the above scenario.  Indeed
"${i//\"/}" fixes things on bash-3.  I also added a condition to eval
only if first char equals tilde (~).

Regards,

Freddy Vulto
http://fvue.nl



More information about the Bash-completion-devel mailing list