[Bash-completion-devel] Bug#857235: Bug#857235: bash-completion: /etc/profile.d/bash_completion.sh can't be forcibly re-run

Ville Skyttä ville.skytta at iki.fi
Thu Mar 9 09:48:49 UTC 2017


I don't know what the reason for making the variable read only is. But
I think you could work around it by setting BASH_COMPLETION_COMPAT_DIR
to a fake value, e.g. /prevent/sourcing in your rc files before the
profile.d snippet is sourced (thus preventing it from loading
bash_completion), and then unsetting it before "manually" loading the
profile.d snippet where you want, and let it do its job unmodified.



More information about the Bash-completion-devel mailing list