From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: doshfunc
Date: Wed, 11 Jul 2001 09:18:01 +0200 (MET DST) [thread overview]
Message-ID: <200107110718.JAA17016@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <1010710160616.ZM29244@candle.brasslantern.com>
Bart Schaefer wrote:
> ...
>
> The code that does `name "$@"' in eval_autoload() is assembling a command
> to pass to bin_eval(). It doesn't append anything to the function def'n.
Err, right, sorry. I was far too hasty yesterday. It's printshfuncnode().
> ...
>
> That error message came from line 3253, not line 3381.
No, 3278 (in an unpatched exec.c).
> } or:
> }
> } % rm -f foo.zwc
> } % echo 'bar() { echo foobar }' >foo
> } % setopt kshautoload
> } % fpath=(. $fpath)
> } % autoload foo
> } % foo
> } zsh: foo: function not defined by file
>
> Same thing there; the error is from line 3253.
>
> Once again, what I want to know is how you reach line 3372 with EF_RUN in
> the Eprog flags, and hence get the error from line 3381.
You need an autoloaded function that unfunctions itself:
% echo 'foo() { echo foo }' >foo
% echo 'unfunction foo' >> foo
% fpath=(. $fpath)
% autoload +Xk foo
% foo
zsh: foo: function not defined by file
And this time it's the one on line 3381.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
prev parent reply other threads:[~2001-07-11 7:20 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
2001-07-10 9:42 ` Sven Wischnowsky
2001-07-10 16:06 ` Bart Schaefer
2001-07-11 7:18 ` Sven Wischnowsky [this message]
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=200107110718.JAA17016@beta.informatik.hu-berlin.de \
--to=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).