From: Sebastian Gniazdowski <psprint3@fastmail.com>
To: zsh-workers@zsh.org
Subject: Re: [BUG] Condition in [[ doesn't fire, with "if" it fires
Date: Tue, 28 Feb 2017 03:27:36 -0800 [thread overview]
Message-ID: <1488281256.2881475.895357184.6106CE5C@webmail.messagingengine.com> (raw)
In-Reply-To: <1488280289.2878360.895324176.3971EE76@webmail.messagingengine.com>
Checked that even:
[[ "below" = "below" ]] && (( line ++ )) || (( line = stborder ))
doesn't fire. In the same way. It is the false option that is fired:
echo "Non-bumped line [${ZUI[log_scroll]}] $line" >> /tmp/reply
[[ "below" = "below" ]] && (( line ++ )) || (( line = 10 ))
echo "Bumped line [${ZUI[log_scroll]}] $line" >> /tmp/reply
Non-bumped line [below] 0
Bumped line [below] 10
--
Sebastian Gniazdowski
psprint3@fastmail.com
prev parent reply other threads:[~2017-02-28 11:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 11:11 Sebastian Gniazdowski
2017-02-28 11:27 ` Sebastian Gniazdowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488281256.2881475.895357184.6106CE5C@webmail.messagingengine.com \
--to=psprint3@fastmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).