Skip to content

AutoComplete.bash removes hyphen in aliases, causing duplicate function names #2498

@btw04

Description

@btw04

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions