linux 环境下修改readonly变量(例如TMOUT)

$ readonly PI=3.14
$ unset PI
-bash: unset: PI: cannot unset: readonly variable
$ cat << EOF| sudo gdb attach $$ call unbind_variable("PI") detach EOF
$ echo $PI

$

你可能感兴趣的:(linux 环境下修改readonly变量(例如TMOUT))