Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Crash of 4.2.0-dev-1
- X-seq: zsh-workers 19782
- From: Peter Stephenson <pws@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Crash of 4.2.0-dev-1
- Date: Thu, 15 Apr 2004 19:13:13 +0100
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: "Bart Schaefer"'s message of "Sun, 11 Apr 2004 05:30:38 -0000." <1040411053038.ZM11840@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> I presume of 4.2.0 also. Reproduce as follows:
>
> (1) Place the following in a file "kshtest" in a directory in fpath:
>
> print "Running kshtest"
> unfunction kshtest
>
> (2) Run zsh -f and execute:
>
> setopt kshautoload
> autoload +X -k kshtest
> kshtest
>
> (3) Observe the [correct] error:
>
> zsh: kshtest: function not defined by file
This must be from the EF_RUN test in doshfunc, right? (Because of the
logic for autoload +X you can't get it the other way.) That means you
see the message just after the outer kshtest is run, I think.
I believe (but haven't checked) we always duplicate a function to
execute so that it's safe to unfunction while it's being executed.
Could that be failing here?
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author