From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id AAA00538 for ; Tue, 30 Jul 1996 00:47:56 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA18473; Mon, 29 Jul 1996 10:21:54 -0400 (EDT) Resent-Date: Mon, 29 Jul 1996 10:21:54 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199607291421.QAA03520@bolyai.cs.elte.hu> Subject: Re: New zed and refresh bug To: hzoli@cs.elte.hu (Zoltan Hidvegi) Date: Mon, 29 Jul 1996 16:21:06 +0200 (MET DST) Cc: pws@ifh.de, zsh-workers@math.gatech.edu In-Reply-To: <199607291403.QAA03358@bolyai.cs.elte.hu> from Zoltan Hidvegi at "Jul 29, 96 04:03:37 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"Q2jsG3.0.ZW4.1aC_n"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1820 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > > hzoli@cs.elte.hu wrote: > > > The zed distributed with pre4 does not exit properli on ^C interrupt. > ~~~ oops. > > > ... > > > integer tmout=TMOUT > > > ... > > > TMOUT=tmout > > > > I think some $ are wanted here. > > The first is OK, and the second used to work because TMOUT was a special > integer parameter and $ is not necessary when assigning an integer > parameter. But you are right that now TMOUT=$tmout or ((TMOUT=tmout)) > should be used. I'll fix it. I's even simpler. Since TMOUT is not special now, the patch below works. Note that integer makes TMOUT local. Zoltan *** Functions/zed 1996/07/28 22:31:53 2.3 --- Functions/zed 1996/07/29 14:17:47 *************** *** 8,14 **** # compctl -f -x 'w[1,-f]' -F -- zed local var fun ctrl_W_bind="$(bindkey '^W')" ! integer tmout=TMOUT [[ $1 = -f || $0 = fned ]] && fun=1 [[ $1 = -(|-|f) ]] && shift --- 8,15 ---- # compctl -f -x 'w[1,-f]' -F -- zed local var fun ctrl_W_bind="$(bindkey '^W')" ! # We do not want timeout while we are editing a file ! integer TMOUT=0 [[ $1 = -f || $0 = fned ]] && fun=1 [[ $1 = -(|-|f) ]] && shift *************** *** 21,33 **** bindkey "^X^W" undefined-key bindkey "^W" "$ctrl_W_bind" trap - INT - TMOUT=tmout } trap 'cleanup ; return 130' INT - - # We do not want timeout while we are editing a file - TMOUT=0 # don't mangle !'s setopt localoptions nobanghist --- 22,30 ----