From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2720 invoked from network); 14 Feb 2000 09:13:52 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Feb 2000 09:13:52 -0000 Received: (qmail 22041 invoked by alias); 14 Feb 2000 09:13:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9705 Received: (qmail 22034 invoked from network); 14 Feb 2000 09:13:46 -0000 Date: Mon, 14 Feb 2000 10:13:44 +0100 (MET) Message-Id: <200002140913.KAA03739@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Peter Stephenson's message of Fri, 11 Feb 2000 19:27:32 +0000 Subject: Re: Zsh 3.1.6 - ${~foo} expansion bug Peter Stephenson wrote: > Sven Wischnowsky wrote: > > The initialisation to `1' for esglob in the patch below shouldn't > > really be necessary, because both es* should be set up when one of the > > functions calling execsubst() will be called. > > This sort of thing really needs more comments, particular at the point the > variables are declared. Ok. Bye Sven diff -ru ../z.old/Src/exec.c Src/exec.c --- ../z.old/Src/exec.c Mon Feb 14 10:03:06 2000 +++ Src/exec.c Mon Feb 14 10:12:58 2000 @@ -1505,6 +1505,11 @@ } } +/* These describe the type of espansions that need to be done on the words + * used in the thing we are about to execute. They are set in execcmd() and + * used in execsubst() which might be called from one of the functions + * called from execcmd() (like execfor() and so on). */ + static int esprefork, esglob = 1; /**/ -- Sven Wischnowsky wischnow@informatik.hu-berlin.de