From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9901 invoked by alias); 5 Nov 2015 00:38:59 -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: 20899 Received: (qmail 3948 invoked from network); 5 Nov 2015 00:38:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=T/C1EZ6Q c=1 sm=1 tr=0 a=NKvc7L9z7/b0bXwZ1ZmuGA==:117 a=NKvc7L9z7/b0bXwZ1ZmuGA==:17 a=N659UExz7-8A:10 a=T0nPW97m5ZWWoOa3kG8A:9 a=pILNOxqGKmIA:10 Message-id: <563AA51B.3040101@eastlink.ca> Date: Wed, 04 Nov 2015 16:38:51 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: two mysteries References: <563A4A75.1020009@eastlink.ca> <151104123546.ZM20556@torch.brasslantern.com> In-reply-to: <151104123546.ZM20556@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 11/04/2015 12:35 PM, Bart Schaefer wrote: > This would be because page_hight (sic) is zero, not because the type > of START_IDX has changed. I spell it wrong on purpose. > } START_IDX=$(( 1+((idx-1)/page_hight)*page_hight )) > } > } ... fixes it > > I suspect not really. Something else changed so that the "page" is > no longer empty, or whatever. 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. > > } playing with associative arrays, yesterday I had to single quote: > } > } varis 'array[value]' line456 5 > } > } ... but only with arrays--scalars were fine--or I got a message to the > } effect that 'no values were matched'. > > Without the quotes, array[value] is being treated as a file glob, and is > looking for a file named one of arrayv, arraya, arrayl, arrayu, arraye. > The "no matches found" error is because none of those files exists. Ah, that makes sense. Yet sometimes the issue isn't there. I'll look more intelligently. > > } In the same vein, if one of these 'zcurses' functions crashes, what the > } docs say about the terminal being in a unstable state sure is true. > } Things look fine, but, for example, history recall goes screwy. > > "stty sane" will often fix you up in this situation. It might also work > to use "ttyctl -f" in your startup file (i.e., before any zcurses stuff > is run) but I'm not sure that handles the case where a zsh builtin has > itself messed up the terminal state. > Ok, things to try, many thanks.