| Summary: | Weird bash file completion for a file with a ":" at first position | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joachim Backes <joachim.backes> |
| Component: | bash | Assignee: | Roman Rakus <rrakus> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | maxamillion, rrakus, tsmetana |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-09-05 09:28:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Joachim Backes
2011-08-29 18:24:49 UTC
Not a bug. bash's readline have special variable COMP_WORDBREAKS. `:' is considered as word separator. echo $COMP_WORDBREAKS "'><=;|&(: unset COMP_WORDBREAKS echo $COMP_WORDBREAKS Now ':' is no more a separator! But still: 'rm :<TAB>' completes to 'rm :\:' I think, the bug should be reopened! (In reply to comment #2) > echo $COMP_WORDBREAKS > "'><=;|&(: > unset COMP_WORDBREAKS > COMP_WORDBREAKS loses special meaning when unset, see man page > > echo $COMP_WORDBREAKS > > Now ':' is no more a separator! > > But still: > > 'rm :<TAB>' completes to 'rm :\:' > > I think, the bug should be reopened! Use something like COMP_WORDBREAKS=${COMP_WORDBREAKS/:/} |