Try to search your question here, if you can't find : Ask Any Question Now ?

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

HomeCategory: stackoverflowwhat is difference in `declare -r` and `readonly` in bash?
Avatarsourav asked 4 months ago

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

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

I’m not sure which to choose.

1 Answers
Best Answer
AvatarArben answered 4 months ago
Your Answer

19 + 1 =

Popular Tags

WP Facebook Auto Publish Powered By :