From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16702 invoked from network); 25 Aug 1999 15:38:16 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Aug 1999 15:38:16 -0000 Received: (qmail 5646 invoked by alias); 25 Aug 1999 15:38:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7485 Received: (qmail 5638 invoked from network); 25 Aug 1999 15:37:58 -0000 From: "Bart Schaefer" Message-Id: <990825153741.ZM24648@candle.brasslantern.com> Date: Wed, 25 Aug 1999 15:37:41 +0000 In-Reply-To: <199908241216.OAA09744@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "PATCH: fix for SEGV" (Aug 24, 2:16pm) References: <199908241216.OAA09744@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: fix for SEGV MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 24, 2:16pm, Sven Wischnowsky wrote: } Subject: PATCH: fix for SEGV } } ...) ./zsh -f } % setopt autocd; hash wc=/bin/wc; echo|wc } } It'll give you a SEGV in `isreallycom()', trying to look at } `cn->u.name' which isn't set because for hashed commands `cn->u.cmd' } is used. } } + if (cn->flags & HASHED) } + return 1; Is that really the right fix? I thought the whole point of isreallycom() was to find cases where the hash table contains a mapping that doesn't refer to a real executable. I'm not sure it should succeed just because the mapping was added explicitly. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com