From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21873 invoked from network); 10 Jun 2000 17:03:24 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Jun 2000 17:03:24 -0000 Received: (qmail 8071 invoked by alias); 10 Jun 2000 17:03:08 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11850 Received: (qmail 8063 invoked from network); 10 Jun 2000 17:03:05 -0000 From: "Bart Schaefer" Message-Id: <1000610165906.ZM24257@candle.brasslantern.com> Date: Sat, 10 Jun 2000 16:59:06 +0000 In-Reply-To: Comments: In reply to Tanaka Akira "unknown TERM problem." (Jun 10, 5:04pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Tanaka Akira , zsh-workers@sunsite.auc.dk Subject: PATCH: Re: unknown TERM problem. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 10, 5:04pm, Tanaka Akira wrote: } Subject: unknown TERM problem. } } I found that unknown TERM causes core dump. Actually, any terminal that doesn't have a programmable cursor will have the same effect, e.g. TERM=dumb. The following seems to be the correct fix; domenuselect() is a hook, so there isn't any way to catch it before the function is entered. Index: Src/Zle/complist.c =================================================================== @@ -1627,6 +1627,8 @@ int space, lbeg = 0, step = 1, wrap, pl = nlnct, broken = 0, first = 1; char *s; + if (!mtab) + return 0; if (fdat || (dummy && (!(s = getsparam("MENUSELECT")) || (dat && dat->num < atoi(s))))) { if (fdat) { -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net