Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Weird error: opts[(r)-e]: parameter not set



torch% () { setopt localoptions nounset; local -a foo; print $foo[3] }
(anon): foo[3]: parameter not set

The NO_UNSET option complains not just when the array itself is not
declared, but whenever there is a dereference of an array element
that does not exist.



Messages sorted by: Reverse Date, Date, Thread, Author