Chet Ramey wrote:

This is intended.  Bash doesn't allow a local copy of a variable to
override a readonly global one.  This can be a potential security hole,

---
You can look at it that way, but it also hinders modular programming.

If I declare a variable to be local, I wouldn't expect it to fail and
be overridden by some global namespace pollution.

It is overridable, but not easily.

Might be nice to have some way to declare a var local to a function that
can be protected from random namespace pollution.



Reply via email to