From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5923 invoked by alias); 30 Oct 2016 11:37:04 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22046 Received: (qmail 8724 invoked from network); 30 Oct 2016 11:37:03 -0000 X-Qmail-Scanner-Diagnostics: from new2-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.224):SA:0(0.0/5.0):. Processed in 0.318282 secs); 30 Oct 2016 11:37:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint@fastmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at spf.messagingengine.com designates 66.111.4.224 as permitted sender) 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= X-ME-Sender: Message-Id: <1477827419.1556830.771655929.5F8D12AD@webmail.messagingengine.com> X-Sasl-Enc: WcIACQ1v89H2PIcrESTz8+Zv/VqCgMGcvXU2U13xbzGs 1477827419 From: Sebastian Gniazdowski To: zsh-users@zsh.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-996895c6 Subject: Re: Weird error: opts[(r)-e]: parameter not set Date: Sun, 30 Oct 2016 04:36:59 -0700 In-Reply-To: <161029100354.ZM4950@torch.brasslantern.com> 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@fastmail.com