From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11184 invoked by alias); 28 Feb 2017 12:17:13 -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: 22516 Received: (qmail 11246 invoked from network); 28 Feb 2017 12:17:12 -0000 X-Qmail-Scanner-Diagnostics: from new1-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.221):SA:0(-0.4/5.0):. Processed in 1.836559 secs); 28 Feb 2017 12:17:12 -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.4 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: psprint3@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.221 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; s=mesmtp; bh=pJ0lJlmpq/2c9QA5jDNqoea4cG w=; b=i7kM/oT8EBJvz8DmqsXy5oGIhH6ZA9ZBZ9FJ9OhegKrJ4z0p+YpccEja5k qL4mY1GjxrGnl51B4Fg3bkW6rCAivV0KqFoAggRvLiDizkbvahPGenBt1u1vFkEP G2N0olhJ+N20sY6QMlj04TUcvVKFC3qM4jNV4aKinPwDTZh6k= 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; s=smtpout; bh=pJ 0lJlmpq/2c9QA5jDNqoea4cGw=; b=Dd5UGWUrQ6j1PBda3tYnzLxcu/etm6OHKt b5NDVrjA3mklTshLFnPtHBv598ZyuVkzH9y6UuNcCLVXL3oBOJNz2hiukWoqL6A2 eA4QZDxWk7RSo/Tji2krelLSBgjVEKP3P5OBZCxr2EH6KPmy6+RafwDoyyvbdCzp 0CL0pEMc0= X-ME-Sender: Message-Id: <1488284227.2893082.895391400.32617991@webmail.messagingengine.com> From: Sebastian Gniazdowski To: zsh-users@zsh.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-715c2c0c References: <1488280289.2878360.895324176.3971EE76@webmail.messagingengine.com> <1488281256.2881475.895357184.6106CE5C@webmail.messagingengine.com> <20170228115158.727f67ff@pwslap01u.europe.root.pri> Date: Tue, 28 Feb 2017 04:17:07 -0800 In-Reply-To: <20170228115158.727f67ff@pwslap01u.europe.root.pri> Subject: Re: [BUG] Condition in [[ doesn't fire, with "if" it fires On Tue, Feb 28, 2017, at 03:51 AM, Peter Stephenson wrote: > You *could* fix this up by switching to a pre-increment, but I'd > recommend just going to if/then/else --- it's much more obvious what the > logic actually means. Hah, had trained a habit to not like post-increment, knowing what it does in C++ as overloaded operator, but this time I omitted.. But maybe it's good, a very interesting oddity revealed, thanks. -- Sebastian Gniazdowski psprint3@fastmail.com