unset a readonly variable
This is a simple one. I am following a great bash guide. On handy feature is setting read-only variables, ie:
rx=hello
echo $hello
hello
readonly rx
Now that I can't change rx accidently. Fine, but let's say I now want to make it updatable again. The guide doesn't mention this. Is this possible with eg, "write rx" or something similiar?
unset rx
bash: unset: rx: cannot unset: readonly variable
hamster.
|