Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Crash of 4.2.0-dev-1



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