When a variable is made local, it inherits the initial value and exported and readonly flags from the variable with the same name in the surrounding scope, if there is one.
The values of variables with the readonly attribute cannot be changed by subsequent assignment, nor can those variables be unset by the unset utility.