Bash Completion: fix bug in dash vs underscore (#780)#781
Conversation
The generated script tries to call sub-functions that have hyphens in them instead of underscores.
|
@rgoldberg I see you've been adjusting completions lately. I want to make sure you see this PR. |
|
@jaredgrubb FYI, my PR to redo completions using ToolIfnoV0 (#764) already fixes this issue. It no longer replaces I think that's a better solution, because, otherwise, a name conflict can exist for bash functions for subcommand If you agree that my solution works better, and that my PR implements it, this PR should be closed. |
|
I think that sounds ok -- as long as that PR is likely to merge before the next release? |
|
@jaredgrubb I hope my PR will be merged before the next release. It & my other PRs seem ready to go. If there are issues wit migrating to ToolInfoV0, I can always extract my solution for this from that PR and submit it by itself. Hopefully I'll hear back from the project members soon. DO you think it makes sense to mark this PR as a draft so they don't merge it then mine, causing unnecessary merge issues, etc.? Or, could you mention in the initial comment for this PR that a more complete solution already exists in #764 & can be extracted? It just doesn't make sense to me to go for a quicker solution that has naming clash issues when the full solution is already available. |
|
@jaredgrubb Thanks for looking at this! I'm working on reviewing #764, and will make sure it lands before the next release, so that change will resolve the underlying issue. |
|
Sounds good! I look forward to the fix! |
|
@jaredgrubb Thanks for noticing this, and for giving me a heads up. Sorry for having preempted your fix. If you notice any other completion problems, please open more issues. Many completion bugs are still extant, with many due to string quoting, escaping, and/or delimiting issues. I just haven't had the chance to find & fix them all yet. |
The generated script tries to call sub-functions that have hyphens in them instead of underscores.
Checklist