From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29597 invoked from network); 9 Jul 2001 16:14:21 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 9 Jul 2001 16:14:21 -0000 Received: (qmail 4328 invoked by alias); 9 Jul 2001 16:14:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15328 Received: (qmail 4287 invoked from network); 9 Jul 2001 16:14:12 -0000 From: "Bart Schaefer" Message-Id: <1010709161124.ZM20256@candle.brasslantern.com> Date: Mon, 9 Jul 2001 16:11:24 +0000 In-Reply-To: <200107091128.NAA14077@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: doshfunc" (Jul 9, 1:28pm) References: <200107091128.NAA14077@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.dk Subject: Re: PATCH: doshfunc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 9, 1:28pm, Sven Wischnowsky wrote: } Subject: Re: PATCH: doshfunc } } Bart Schaefer wrote: } } > Meanwhile, Sven: When exactly does the EF_RUN flag get set? } } When using `autoload +X foo' on a function `foo' that has to be loaded } with ksh-style loading (because of `kshautoload' or `zcompile -k'). Well, I just did this: echo 'bar() { print oops }' > foo setopt kshautoload FPATH=. autoload +X foo and got no complaint at all. And look what "functions foo" gives me: foo () { bar () { print oops } foo "$@" } Something has magically supplied the `foo "$@"' at the end of the file! So then I tried: unfunction foo zcompile -z foo mv foo bar FPATH=. autoload +X foo And I get: foo () { bar () { print oops } } Finally: unsetopt kshautoload unfunction foo mv bar foo zcompile -k foo mv foo bar FPATH=. autoload +X foo and I get the magic `foo "$@"' again. So I still can't reach the `goto doneshfunc'. -- 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