I like your solution leaving the user -/+ posix setting intact. Leaving
a small chance the user does a ^C before we restore the setting I think
is the best we can do.
Letting bash-completion disable posix globally just doesn't feel good.
The same goes for doing shopt -s extglob globally - see
Crestez Dan Leonard cdleonard at gmail.com writes:
I had to mangle +o posix to get tests to pass. I don't know why the test
suite puts the shell into posix mode anyway.
Because users 'out there' might run bash-completion in bash POSIX mode. I
regard POSIX as just stricter bash script and