Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: two mysteries
- X-seq: zsh-users 20901
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: two mysteries
- Date: Fri, 6 Nov 2015 10:44:55 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=+S7O+VczWM+H0p6akQ3uLlS5m60AjYqOSuXLbPjb9Y8=; b=Vy+cQHFZhTRmLq9GySj5j3tgUGYXcR8ESrKJuqOpAZprr96OlmCpVLTwN3NRhvHD/Z S0J47gOQZVoxLCh3uH+/f2hQV5MlUHaFvYM5NAAjERvb8n4SSzGJpA6ZUNJ1g1SB7XHY YGCXRBVzNeSW5R4p6ckWUygtMGGXboSt1frhHV4uFx1R78KOgBb7hDKFL1hSr7qtuW8X Wb4DWoOzNXasujDgDA4H6xPf0s1ZcGvlbwB/2sSYkKJUGqsgpBo1SCgtoPbuDVDD5E5r v3LF3An19uSWsxEGIIay/2fm/ZXel6DX8OkvZQDkVta0G8Kxzw9NhyW8egVcsNnwpuX9 oy/A==
- In-reply-to: <563AA51B.3040101@eastlink.ca>
- 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: <563A4A75.1020009@eastlink.ca> <151104123546.ZM20556@torch.brasslantern.com> <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%
Messages sorted by:
Reverse Date,
Date,
Thread,
Author