声明 declare -r variable 不能更改内容,不能重设,只有当前shell注销后才失效。 转载于:https://www.cnblogs.com/xhqhome/p/5548488.html