Thank you (Re: Please allow user to revert to standard bash completion at any time (a must-have).)
> Yes, just run 'complete -r' and all
> completions will be removed, leaving
> just the default. However, I agree that
> this isn't the most useful way of
> achieving this, so I will consider the
> implementation of a better mechanism.
Thank you. A quick test showed that
indeed the "broken" behaviors do work again. This is
enough for my purpose and some
investigation will allow to selectively remove some of the
completions but not all.
Thank you for this constructive reply.
May I suggest to include both explanations (about the need
that the env variables do not change, and a way to turn the
feature off -- although the latter is actually a bash feature) in
the package documentation and on the project web page ?
Example of broken completion (mixing env variable and path)
WIth a traditional bash, it often happens that I type :
cd $PWD/ [and press TAB]
so that it completes into
and then I quit the shell.
Now the directory where I left the shell is in the history.
When starting a new shell, a Ctrl-R cd (or even up arrow)
brings me back to the dir I was working before. I can open
many terminals and jump right into the without editing any
cdpath or the like. This is standard bash behavior.
With bash_completion activated,
cd $PWD/ [TAB]
"fails" (it flashed and does nothing),
so the happy behaviour used for years is broken.
Any idea how to modify bash_completion so that this
appreciated behaviour still works ? Thanks.