Modification of read-only Variables
This inspection highlights modifications of variables, which were declared as read–only.
It highlights a modification under these conditions:
- It was previously declared as read–only. For example,
declare -rdeclare a variable as read–only.
- It’s an assignment or modification.
myVar=valueis a modification,
export myVaris not a modification.