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 22046
- From: Sebastian Gniazdowski <psprint@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Weird error: opts[(r)-e]: parameter not set
- Date: Sun, 30 Oct 2016 04:36:59 -0700
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=SCSq7Q6VRk30gT+ 2MYiOhH3yZ4I=; b=66wFYYI2QJpumol6BODEzBwqNPYMPyrr3sliVyVtnLb+L1P h4TRx5Yv9kfhqytbBpjowSpZoiuLmNqwSI/zH7mUcEBQ1QEEOTD27TO5ccR0WHT8 INsnXYpH8UQj5xZH1MHDEn0SETrczH9vigR2MGG2+yxFMyOSAcO2Hapy/mKQ=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=SCSq7Q6VRk30gT+2MYiOhH3yZ4I=; b=rz9V49m8gR/bC2QDfgv3 S/2sV4re8hFoBfn39kBrK/4kz86CPHW6cDprb8R5WaYdf7h9awMnJAGiGLwQEkEZ YmN0/ouPDeC8QiVDBDWncwzUVgLRu72pabmIMig0EnBBcoMfyFWdDWBuARqcAMGC wDLyQo0eBFseUXzeUW/PyYA=
- In-reply-to: <161029100354.ZM4950@torch.brasslantern.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> <161029100354.ZM4950@torch.brasslantern.com>
On Sat, Oct 29, 2016, at 10:03 AM, Bart Schaefer wrote:
> 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.
I must have done something wrong when testing this, probably had "-e" in
the test array. Thanks, with Daniel's fix, the problem should be solved.
--
Sebastian Gniazdowski
psprint@xxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author