readonly.md
补充说明
语法
readonly(选项)(参数)选项
-f:定义只读函数;
-a:定义只读数组变量;
-p:显示系统中全部只读变量列表。参数
实例
[root@localhost ~]# readonly #显示只读变量
declare -ar BASH_VERSINFO='([0]="3" [1]="2" [2]="25" [3]="1" [4]="release" [5]="i686-redhat-linux-gnu")'
declare -ir EUID="0"
declare -ir PPID="31436"
declare -r SHELLOPTS="braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor"
declare -ir UID="0"Last updated