From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26855 invoked from network); 30 Apr 2001 09:41:22 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 30 Apr 2001 09:41:22 -0000 Received: (qmail 2481 invoked by alias); 30 Apr 2001 09:41:16 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14157 Received: (qmail 2462 invoked from network); 30 Apr 2001 09:41:15 -0000 From: Sven Wischnowsky Date: Mon, 30 Apr 2001 11:41:07 +0200 (MET DST) Message-Id: <200104300941.LAA02368@beta.informatik.hu-berlin.de> To: zsh-workers@sunsite.dk Subject: Re: More about ksh_glob and completion In-Reply-To: Peter Stephenson wrote: > ... > > But I still think precompiling patterns is OK as long as you do it at the > point of first use. The difficult case > > % unsetopt kshglob > % testpat() { setopt kshglob; [[ $1 = @(aardvark|bison) ]]; } > > will always work so long as the pattern is compiled at that point. Yes, that's what we do: see, for example, the reference to the `pats' array in the Eprog in cond.c:199 (execcase() contains similar code). Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de