- readonly keyword prints all the read only functions
- readonly -f prints all the read only functions
#! /bin/bash var=31 readonly var # read only variable var=50 echo var : $var hello (){ echo Hello World } readonly -f hello #read only function
Scripting is sorcery
#! /bin/bash var=31 readonly var # read only variable var=50 echo var : $var hello (){ echo Hello World } readonly -f hello #read only function