From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4366 invoked from network); 30 Jan 2000 17:36:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Jan 2000 17:36:41 -0000 Received: (qmail 7422 invoked by alias); 30 Jan 2000 17:36:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9477 Received: (qmail 7406 invoked from network); 30 Jan 2000 17:36:33 -0000 From: "Bart Schaefer" Message-Id: <1000130173629.ZM29398@candle.brasslantern.com> Date: Sun, 30 Jan 2000 17:36:29 +0000 X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Infinite loop (bug in wordcode evaluation?) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii The following function reproduces the bug in an interactive shell with ZLE active: function hang() { emulate -L zsh trap return HUP INT QUIT for ((i=0; 1; i=0)) do tmp=() vared -p "Type ^C here: " tmp done } If you interrupt this with ^C, 3.1.6-dev.16 goes into a loop repeatedly evaluating the "for" expressions on an empty loop body. The "trap" is important. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com