readonly [ -p ] [ name [ =value ] ... ]
Description
You can use readonly to set the read-only attribute for the variables specified by name. A variable with the read-only attribute cannot have its value changed by a subsequent assignment and cannot be unset.
Note that qsh can change the value of a variable with the read-only attribute. For example, if PWD has the read-only attribute, it's value will be changed when you change the current working directory.
When no arguments are specified, qsh displays a list of the variables with the read-only attribute and their values.
Options
Operands
Each name specifies a variable in the current environment. If a value is also specified, the value of the variable is updated before setting the read-only attribute.
Exit Status
Related information
readonly ALPHA
readonly ALPHA=one
readonly