[Bash-completion-devel] [bash-completion-Bugs][311433] /etc/bash_completion.d is being sourced twice
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Tue Feb 3 23:08:19 UTC 2009
Bugs item #311433, was opened at 2009-02-04 00:00
>Status: Closed
Priority: 3
Submitted By: Freddy Vulto (fvu-guest)
Assigned to: Freddy Vulto (fvu-guest)
Summary: /etc/bash_completion.d is being sourced twice
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number:
Initial Comment:
By default BASH_COMPLETION_DIR and BASH_COMPLETION_COMPAT_DIR contain the same value:
BASH_COMPLETION_DIR=/etc/bash_completion.d
BASH_COMPLETION_COMPAT_DIR=/etc/bash_completion.d
At the end of `bash_completion', both variables are looped through and sourced without checking if the directories are equal, effectively sourcing `/etc/bash_completion.d' twice.
----------------------------------------------------------------------
>Comment By: Freddy Vulto (fvu-guest)
Date: 2009-02-04 00:08
Message:
Prevent completion dir from being sourced twice if BASH_COMPLETION_DIR and BASH_COMPLETION_COMPAT_DIR are equal.
Fixed in r1306.
----------------------------------------------------------------------
Comment By: David Paleino (hanska-guest)
Date: 2009-02-04 00:05
Message:
I'm really sorry for this, it was kind of a beginning for the new directory layout (COMPAT_DIR is for "compatibility dir"...)
Freddy, I will fix this myself if you don't have time.
David
----------------------------------------------------------------------
You can respond by visiting:
http://alioth.debian.org/tracker/?func=detail&atid=413095&aid=311433&group_id=100114
More information about the Bash-completion-devel
mailing list