Modification of read-only Variables

This inspection highlights modifications of variables, which were declared as read–only.

It highlights a modification under these conditions:

  1. It was previously declared as read–only. For example, readonly and declare -r declare a variable as read–only.
  2. It’s an assignment or modification. myVar=value is a modification, export myVar is not a modification.
Detection of a modification of a read-only variable
Detection of a modification of a read-only variable
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal