From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4986 invoked from network); 28 Sep 2001 09:57:58 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Sep 2001 09:57:58 -0000 Received: (qmail 19921 invoked by alias); 28 Sep 2001 09:57:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15889 Received: (qmail 19899 invoked from network); 28 Sep 2001 09:57:49 -0000 From: Bart Schaefer Message-Id: <1010928095724.ZM16337@candle.brasslantern.com> Date: Fri, 28 Sep 2001 09:57:23 +0000 In-Reply-To: <001901c147e7$87af3ab0$21c9ca95@mow.siemens.ru> Comments: In reply to Borsenkow Andrej "RE: Failure of Test/V01 in 4.1.0-dev-2" (Sep 28, 10:33am) References: <001901c147e7$87af3ab0$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: PATCH: Re: Failure of Test/V01 in 4.1.0-dev-2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 28, 10:33am, Borsenkow Andrej wrote: } > } It looks like zsh/zftp doesn't specify a dependency on zsh/net/tcp } > } > Hrm, it does specify the dependency in the .mdd file, but } } We discussed it already. Currently there is no mechanism that allows one } *external* module to load another *external* module it depends upon. Ah, right, then the test code should handle that. However, it appears that "zmodload -u zsh/zftp" dumps core even if the zsh/net/tcp module is still loaded, so there's some kind of a bug in zftp.c. Index: Src/V01zmodload.ztst =================================================================== diff -c -r1.2 V01zmodload.ztst --- Src/V01zmodload.ztst 2001/07/10 09:05:25 1.2 +++ Src/V01zmodload.ztst 2001/09/28 09:53:39 @@ -12,6 +12,10 @@ eval "$name $modfile $link $auto $load" [[ $link == no ]] && continue mods=($mods $name) + moddeps= + modfile=$ZTST_srcdir/../$modfile + eval ${${${(f)"$(<$modfile)"}[(r)moddeps=*]}:-:} + [[ -n $moddeps ]] && zmodload -d $name $=moddeps done < $ZTST_testdir/../config.modules zmodunload() { @@ -157,5 +161,5 @@ %clean eval "$deps" - unset deps name modfile link auto load funcs mods + unset deps name modfile link auto load funcs mods moddeps unfunction zmodunload -- 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