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

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


On Tuesday 31 March 2009, Ville Skyttä wrote:
> 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.

Oops.  I thought I was testing bash 2.x but in fact it was bash "3.00.15(1)-
release" on CentOS 4.  And I made quite a mess of amending the original commit 
:(.  The stuff desirable in 1.0 is these two changes:

http://git.debian.org/?p=bash-completion/bash-
completion.git;a=commitdiff;h=15594d6c08cf0cd76fe5918ff17dd4637bf6394b
http://git.debian.org/?p=bash-completion/bash-
completion.git;a=commitdiff;h=cb61c92f7147ab904962a662cb56ab95927f74f7



More information about the Bash-completion-devel mailing list