Bugzilla – Bug 128791
Context-sensitive completion in bash is evil
Last modified: 2005-11-09 11:23:35 UTC
I need to type "unzip -v VeryLongLongLongLongFileName.odp" to test something. So I type "unzip -v Ver[Tab]", and nothing happens. This is the fault of /etc/profile.d/completion.bash.
No it is not. Zip files do have the extension .zip or .ZIP but not .odp ... if you want to unzip an OpenOffice file do complete -r unzip Btw: You may explain this the customers which _wants_ this. The reason for writing this context-sensitive completion was only driven by customers.
That's some hard-core shell-using customers ya got there! I'd love to see the feature request for this :) In any case, it would be better to prioritize the completions, and fall back to any filename that matches if no context-sensitive completions are possible.
Read from my lips: I've said no.
Created attachment 56586 [details] New /etc/profile.d/complete.bash for better unzip support Please give this new complete.bash a try. This version should find any ZIP or EXE for the unzip command
Reopen for feedback
Added expert mode: If ~/.bash.expert is found no completeion at all is sourced but the file ~/.bash.expert
See attachment herein
No feedback is good feedback