Source: Adapted from Exherbo's by Bo Ørsted Andresen Upstream: No. Reason: Avoid error messages such as: bash: BASH_COMPLETION: readonly variable --- bash_completion 2008-11-23 22:45:42.000000000 +0100 +++ bash_completion 2008-11-23 23:33:01.000000000 +0100 @@ -39,8 +39,13 @@ # Alter the following to reflect the location of this file. # -[ -n "$BASH_COMPLETION" ] || BASH_COMPLETION=/etc/bash_completion -[ -n "$BASH_COMPLETION_DIR" ] || BASH_COMPLETION_DIR=/etc/bash_completion.d +# Don't try to redefine readonly variables +if [[ -z ${BASH_COMPLETION} ]]; then + BASH_COMPLETION="${BASH_COMPLETION:-/usr/share/bash-completion/base}" +fi +if [[ -z ${BASH_COMPLETION_DIR} ]]; then + BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}" +fi readonly BASH_COMPLETION BASH_COMPLETION_DIR # Set a couple of useful vars