zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: two mysteries
Date: Fri, 6 Nov 2015 10:44:55 -0800	[thread overview]
Message-ID: <151106104455.ZM22748@torch.brasslantern.com> (raw)
In-Reply-To: <563AA51B.3040101@eastlink.ca>

On Nov 4,  4:38pm, Ray Andrews wrote:
}
} You're probably right.  It's very hard to track.  However there's no 
} question that the type changes from integer when it happens, I've used 
} the (t) flag to check.

I suspect further that you're not examining the same variable after the
error as before.  The divide-by-zero is a fatal error, e.g.:

torch% () { integer x; x=foo/bar; print ${(t)x} }
(anon): division by zero
torch% 

Note that the "print" statement was never executed.  If I bring it up
to top level:

torch% integer x
torch% x=foo/bar
zsh: division by zero
torch% print ${(t)x}
integer
torch% 


  reply	other threads:[~2015-11-06 18:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-04 18:12 Ray Andrews
2015-11-04 20:35 ` Bart Schaefer
2015-11-05  0:38   ` Ray Andrews
2015-11-06 18:44     ` Bart Schaefer [this message]
2015-11-06 22:22       ` Ray Andrews
2015-11-07  9:55         ` Bart Schaefer
2015-11-07 15:19           ` Ray Andrews
2015-11-07 17:19             ` Bart Schaefer
2015-11-07 18:37               ` Ray Andrews

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=151106104455.ZM22748@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).