Re: Shouldn't readonly (-r) prevent type changes?
Oliver Kiddle <[email protected]> Sat, 25 Jul 2026 23:57:13 +0200
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <[email protected]> |
Philippe Altherr wrote: > Bash seems to forbid all type changes for read-only parameters, while ksh > prevents most, sometimes without any error message, and allows some like > "typeset -r -i var; typeset -a var", which creates a read-only array of > integers. I think ksh treats all variables as being arrays so thatisn't a type conversion. It was already a one element array. Oliver