[Bash-completion-devel] bash 2.x array initialization

Ville Skyttä ville.skytta at iki.fi
Mon Mar 30 21:13:33 UTC 2009


On Monday 30 March 2009, Ville Skyttä wrote:
> The following commit has been merged in the master branch:
> commit afa40dea93309b5e793613858f0c18cf35ec9f12
> Author: Ville Skyttä <ville.skytta at iki.fi>
> Date:   Mon Mar 30 23:53:23 2009 +0300
>
>     Fix local array initialization under bash 2.x.
>
>     In bash 2.x, "local foo=(bar)" does not appear to initialize foo to
>     an array containing "bar", but to the non-array value "(bar)".

This fix is something we definitely want in 1.0 too - without it, all _filedir 
completions get a "()" entry included in them under bash 2.x.

I saw 1.0 was already tagged but I don't know how the branch is supposed to be 
managed and by whom (there's no mention of 1.0 in the roadmap proposal) so 
I've committed this only to master.



More information about the Bash-completion-devel mailing list