Linux Shell中readonly只读变量删除
1.下载gdb(如果已经有的话就不用下载)
[root@localhost ~]# yum install gdb
2.删除
[root@localhost ~]# readonly var=123
[root@localhost ~]# cat << EOF | gdb
> attach $$
> call unbind_variable("var")
> detach
> EOF
[root@localhost ~]# yum install gdb
2.删除
[root@localhost ~]# readonly var=123
[root@localhost ~]# cat << EOF | gdb
> attach $$
> call unbind_variable("var")
> detach
> EOF