Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Weird error: opts[(r)-e]: parameter not set
- X-seq: zsh-users 22045
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Weird error: opts[(r)-e]: parameter not set
- Date: Sat, 29 Oct 2016 10:03:54 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=RWsnU4sqzJM00O05BAPRgj7wYdvKuEDzxiixBCA2YmY=; b=dnlMvBheh/oHOp0V8oDMEvgJ+BP0YVWfdQK+H+rshxFZqGXWENru0D2PfDYBAR9dEi 9UjBppgqY9kcU6KkSXWCNljCmcJsC5Qyu+VG/MTvhZ9VXhQ1sI4e2iqGfbfHvFNYwqHU 11JP47k3yOt/8wQRxEWuQMpV88HqHeWj5FbVipAR1WYl+FF4ML6D1VETuqFsmvyG/skQ L0J/Tx3AZJtJkvwnVpCpej1q4lF38recpdYTpq7qD88yGDahDfPovwRKiC1yt+UOfbiU Eg4DxgEGsJB06/Wqx473QAf9LfJuP94xdr/fb8rLAPxSl9rODGElfb9p6ZrfvigbCoxm r9+g==
- In-reply-to: <1477750478.1339900.771127977.5B74E734@webmail.messagingengine.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1477750478.1339900.771127977.5B74E734@webmail.messagingengine.com>
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