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

Re: .zwc file execution question



On Thu, Oct 19, 2000 at 02:17:58PM -0700,
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> On Oct 19,  1:54pm, Paul Lew wrote:
> > Subject: .zwc file execution question
> > If a script is zcompiled and a .zwc is generated.  Will the following
> > command read it?
> > 
> > 	. zsh-script
> 
> That's what the doc says:  If the .zwc is newer, that's what gets read.
> 
> If it doesn't seem to be working that way, notify zsh-workers.

A quick test:
   echo "echo foo" > ZSHTEST
   zcompile ZSHTEST
   echo "echo bar" > ZSHTEST
   # wait a second or so
   touch ZSHTEST.zwc
   . ./ZSHTEST

If it says "foo", the compile version is used (as is here), if it says
"bar", you found a bug worth to be reported :-)

Ciao,
Thomas

-- 
 Thomas Köhler Email:   jean-luc@xxxxxxxxxxxxxxxxx     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships

Attachment: pgpMDNe85YmiT.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author