[Bash-completion-devel] Bug#549550: [PATCH] bash-completion: Defined functions clash with user environment

Freddy Vulto fvulto at gmail.com
Sun Oct 4 22:00:14 UTC 2009


On Sun, Oct 4, 2009 at 12:33 PM, Jari Aalto <jari.aalto at cante.net> wrote:
> By installing bash completion package, there are serious environment
> clashes. The function in the package do not have distinct prefixes to
> differentiate them from the user's aliases and functions; so
> there will be an inevitable clash at some point.

Thanks for the report/patch.  I agree we should really claim a bash
'namespace' by prefixing all functions.  But since we have backwards
compatibility to worry about if we rename all functions, I think we'd best
implement such a major change for a next major release (> 1.1).

I've proposed prefixing within the roadmap (see
http://wiki.debian.org/Teams/BashCompletion/Proposals/Roadmap) as an
objective for version 2.0 (?): "* create namespace by prefixing all
functions with ...?"

Maybe we'd better vote about the prefix also.  I was thinking of using `comp_'
and `_comp_' prefixes.


Regards,

Freddy Vulto
http://fvue.nl



More information about the Bash-completion-devel mailing list