what is difference in `declare -r` and `readonly` in bash?

后端 未结 0 1897
滥情空心
滥情空心 2021-02-12 00:34

In bash, what is the difference in declare -r and readonly?

$ declare -r a=\"a1\"
$ readonly b=\"b1\"

I\'m not sure w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题