How to reproduce
Run AutoComplete.bash(...) on a command that has an alias or name using a hyphen (-). The function name for the auto-complete bash script function then removes the hyphen.
More Context
This can seemingly cause issues if the alias is only differentiated with a hyphen, i.e. when having a command with aliases = {"foobar", "foo-bar"}. The generated bash script then has two functions with the same name. Changing this behavior so that it simply "drops down" the hyphen to and underscore should prevent this, although removing the duplicate function might be the cleaner solution.
How to reproduce
Run
AutoComplete.bash(...)on a command that has an alias or name using a hyphen (-). The function name for the auto-complete bash script function then removes the hyphen.More Context
This can seemingly cause issues if the alias is only differentiated with a hyphen, i.e. when having a command with
aliases = {"foobar", "foo-bar"}. The generated bash script then has two functions with the same name. Changing this behavior so that it simply "drops down" the hyphen to and underscore should prevent this, although removing the duplicate function might be the cleaner solution.