Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Condition in [[ doesn't fire, with "if" it fires
- X-seq: zsh-users 22516
- From: Sebastian Gniazdowski <psprint3@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: [BUG] Condition in [[ doesn't fire, with "if" it fires
- Date: Tue, 28 Feb 2017 04:17:07 -0800
- 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=
- In-reply-to: <20170228115158.727f67ff@pwslap01u.europe.root.pri>
- 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: <1488280289.2878360.895324176.3971EE76@webmail.messagingengine.com> <CGME20170228112804epcas2p2e241ff0013d6ac1cae21987a41442ce8@epcas2p2.samsung.com> <1488281256.2881475.895357184.6106CE5C@webmail.messagingengine.com> <20170228115158.727f67ff@pwslap01u.europe.root.pri>
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@xxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author