File bash-completion-readonly_fix.patch of Package bash-completion
Index: bash_completion/bash_completion
===================================================================
--- bash_completion.orig/bash_completion 2008-09-26 15:31:50.000000000 +0200
+++ bash_completion/bash_completion 2008-09-26 15:32:59.000000000 +0200
@@ -32,10 +32,9 @@
{
# These declarations must go within braces in order to be able to silence
# readonly variable errors.
- BASH_COMPLETION="${BASH_COMPLETION:-/etc/bash_completion}"
- BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}"
+ readonly BASH_COMPLETION="${BASH_COMPLETION:-/etc/bash_completion}"
+ readonly BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}"
} 2>/dev/null || :
-readonly BASH_COMPLETION BASH_COMPLETION_DIR
# Set a couple of useful vars
#