| Summary: | bash file completion does not work as expected | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joachim Backes <joachim.backes> |
| Component: | bash-completion | Assignee: | Ville Skyttä <ville.skytta> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | sheltren, ville.skytta |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-20 16:42:40 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-10-20 15:19:12 UTC
(In reply to comment #0) > ls S<tab> expands to ls Schulmeister.ogg. This is OK Yes, it makes sense to complete all files after a "ls". > firefox S<tab> does not expand S to Schulmeister.ogg. This seems to be wrong. > > firefox A<tab> expands to Asturias.html. OK bash-completion completes only various different HTML file suffixes after "firefox". I don't think opening *.ogg with Firefox is what people generally intend to do. If you disagree with what bash-completion does to the firefox command completion, you can remove that particular completion with "complete -r firefox" in your ~/.bash_completion or use Alt+/ instead of Tab when completing which bypasses bash-completion. > eeeee S<tab> expands to eeeee Schulmeister.ogg though eeeee is an unknown cmd. bash-completion only affects completions that it explicitly installs completions for, and obviously eeeee is not one of them, so what you're getting for it is bash's default completion. > If trying the same in F15, bash expands the filenames as expected. bash-completion is not installed in F15 by default, but it is in F16. If you dislike its effects, you can just remove the bash-completion package or disable it on per user basis with for example "shopt -u progcomp" in ~/.config/bash_completion |