[Bug 1327586] [NEW] bash-completion functions should be prefixed with __bash_completion__ to stop them conflicting with commands
Simon Arlott
1327586 at bugs.launchpad.net
Sat Jun 7 17:07:27 UTC 2014
Public bug reported:
All of the functions defined in the /usr/share/bash-
completion/completions/* files end up in the shell's global function
namespace.
This causes them override lookups for commands in $PATH, which means
that any command starting with an underscore is at risk of being
overridden by a completions script.
This caused my $HOME/bin/_ssh script to stop being called after the
/usr/share/bash-completion/completions/ssh was loaded. The _ssh function
was being called instead of my script.
If the function names were prefixed with __bash_completion__ then they
would be less likely to conflict with any real commands or user defined
functions in a user profile file.
** Affects: bash-completion (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1327586
Title:
bash-completion functions should be prefixed with __bash_completion__
to stop them conflicting with commands
Status in “bash-completion” package in Ubuntu:
New
Bug description:
All of the functions defined in the /usr/share/bash-
completion/completions/* files end up in the shell's global function
namespace.
This causes them override lookups for commands in $PATH, which means
that any command starting with an underscore is at risk of being
overridden by a completions script.
This caused my $HOME/bin/_ssh script to stop being called after the
/usr/share/bash-completion/completions/ssh was loaded. The _ssh
function was being called instead of my script.
If the function names were prefixed with __bash_completion__ then they
would be less likely to conflict with any real commands or user
defined functions in a user profile file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1327586/+subscriptions
More information about the foundations-bugs
mailing list