From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>,
zsh-workers@sunsite.dk
Subject: Re: PATCH: doshfunc
Date: Mon, 9 Jul 2001 16:11:24 +0000 [thread overview]
Message-ID: <1010709161124.ZM20256@candle.brasslantern.com> (raw)
In-Reply-To: <200107091128.NAA14077@beta.informatik.hu-berlin.de>
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
next prev parent reply other threads:[~2001-07-09 16:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-15 13:22 Is PRINT_EXIT_VALUE supposed to work? Peter Stephenson
2001-06-24 4:06 ` PATCH: " Bart Schaefer
2001-07-03 17:13 ` Peter Stephenson
2001-07-03 17:46 ` Bart Schaefer
2001-07-08 15:19 ` Bart Schaefer
2001-07-09 8:22 ` Sven Wischnowsky
2001-07-09 11:08 ` PATCH: doshfunc() Bart Schaefer
2001-07-09 11:28 ` PATCH: doshfunc Sven Wischnowsky
2001-07-09 16:11 ` Bart Schaefer [this message]
2001-07-10 9:42 ` Sven Wischnowsky
2001-07-10 16:06 ` Bart Schaefer
2001-07-11 7:18 ` Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1010709161124.ZM20256@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).