| Summary: | _completion_loader() breaks "complete -r" | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dabe Murphy <dabe> |
| Component: | bash-completion | Assignee: | Ville Skyttä <ville.skytta> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | ooprala, sheltren, ville.skytta |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-08 14:06:45 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Sure, but I tend to think this is not something we should even try to do anything about in bash-completion; it's kind of a generic bash thing. Maybe we should document it as a known issue in README.md's known problems section though. Wanna submit a upstream github pull request? Anyway, if you want to reset a completion to the shell's defaults, instead of _minimal, I suggest using "complete -o default" (+ maybe "-o bashdefault") instead of "complete -r" (or in your workaround). This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |
Description of problem: Because completions are loaded dynamically, they spontaneously reappear -- even after using "complete -r <cmdName>" to remove them. Version-Release number of selected component (if applicable): N/A How reproducible: 100% Steps to Reproduce: 1. git stat<TAB> 2. complete -r git 3. git stat<TAB> Actual results: Both (1) and (3) complete to "git status" Expected results: (3) should not auto-complete [unless there were a file named 'status' in the current directory, but that's pathological...] Additional info: "complete -F _minimal <cmdName>" works as a passable surrogate; here's a (brittle) work-around: prompt% cat $HOME/.bash_completion complete() { # HACK: Only supports "-r" as first argument # We also check second arg so "complete -r" still works by itself if [[ "$1" = '-r' ]] && [[ -n "$2" ]]; then shift command complete -F _minimal "$@" else command complete "$@" fi }