From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27104 invoked by alias); 14 Sep 2016 19:35:40 -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: 21910 Received: (qmail 19645 invoked from network); 14 Sep 2016 19:35:40 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f176.google.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(209.85.220.176):SA:0(0.0/5.0):. Processed in 0.305019 secs); 14 Sep 2016 19:35:40 -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: mikachu@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.176 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Kf9iIa+uJ7owcYDm9VPYQt5cGy+f4nDZZB841E1yM9U=; b=p5hDUoUm9FHvaeKmGUOFt582/pEHpN3vC2DpO/jsg6Sohtx+Z0jktPeyJowbNdogfl nv39bg6TWGLyhBxt8ZhH6KNUF6o0BfRCNPt02PctJhneA5jOTY/NELrIsnpHTwTh0/Gd FDu5PcoGdrS1NO59IPDK9WZwxlgdc9R1EfBGu9EGnn+uYo/lJfR61u8AzLfJJTSEPkwF oD88s3ZoHBH1xajdkUTsktHc3cTxWIy7Tw5KMufBVYU5eizEigZfwuSlqwr1cnn9VCXk mWVAyAxqb/rMtxDkzfEStmGdHK7tAYUQ7CWxfLg1ImvVCxijwgOGQq/j9m0BoJ3u1a7O ZL4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Kf9iIa+uJ7owcYDm9VPYQt5cGy+f4nDZZB841E1yM9U=; b=iN0o2moVQPtqebrMdIU+SNSL2zCDqBgKQsHvgUzVhJEwQNwaMlMsUGoz661NalSuSA svZKzX65Vow2GZsnyFKLg0KbkwqtucDRgYGTHVWRKzcc8OpPj+xvcgSZU9oQpZI32uQz k+bLUZud1NiXOjlTOizUFjBh9m+XRwrirQQ8+6k5tLpyaiAlFX9B5DvxTK4pCj7mB3LK 7kGwROzVlQDz7jBkzK58aYn47EQxyeeIGLilUEcGLWbJ3pPzoSPjdO+w9DWed+j73eUN 6A+UHjduKEDoenDwhhyUYBcTNI+r+I+QSQIMKE9jRpqkQSSTAfWh061m8hAUcSkqJ1M9 CoFg== X-Gm-Message-State: AE9vXwPvpWqdR8EeRnapHc/8GLHCvUZQv8lbVRG1Jv4WDlRoVPuepXBZHN2/LvB5sPmAYFikVLDKdexBIEWcYg== X-Received: by 10.55.204.82 with SMTP id r79mr5188096qki.240.1473880109605; Wed, 14 Sep 2016 12:08:29 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <160914092059.ZM29649@torch.brasslantern.com> References: <1473840044.77968.725190513.460F8572@webmail.messagingengine.com> <1473852075.116222.725350673.4067E6E0@webmail.messagingengine.com> <160914092059.ZM29649@torch.brasslantern.com> From: Mikael Magnusson Date: Wed, 14 Sep 2016 21:08:29 +0200 Message-ID: Subject: Re: Possible bug: Zsh function does not terminate when ${name:?word} fails To: Bart Schaefer Cc: Zsh Mailing-List Content-Type: text/plain; charset=UTF-8 On Wed, Sep 14, 2016 at 6:20 PM, Bart Schaefer wrote: > On Sep 14, 1:21pm, Ronald Fischer wrote: > } Subject: Re: Possible bug: Zsh function does not terminate when ${name:?wo > } > } > This seems to be a side effect of the reserved word handling, if you do > } > disable -r local > } > then it behaves as expected. > } > } I don't think this would be a good idea. > > I think this was being presented as a diagnostic tool, not as a work- > around for real usage. Disabling local as a reserved word does not disable the builtin, and only reverts to the old behavior of not being able to specify arrays' values on the parameter declaration line. % a=${foo:?bar}; echo hello zsh: foo: bar % local a=${foo:?bar}; echo hello zsh: foo: bar hello % \local a=${foo:?bar}; echo hello zsh: foo: bar (the backslash has the same effect of overriding the reserved word handling) -- Mikael Magnusson