* .zwc file execution question
@ 2000-10-19 20:54 Paul Lew
2000-10-19 21:17 ` Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Paul Lew @ 2000-10-19 20:54 UTC (permalink / raw)
To: zsh-users
If a script is zcompiled and a .zwc is generated. Will the following
command read it?
. zsh-script
Will it read zsh-script.zwc or I have to use:
. zsh-script.zwc
Thanks in advance.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: .zwc file execution question
2000-10-19 20:54 .zwc file execution question Paul Lew
@ 2000-10-19 21:17 ` Bart Schaefer
2000-10-20 7:52 ` Thomas Köhler
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2000-10-19 21:17 UTC (permalink / raw)
To: Paul Lew, zsh-users
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: .zwc file execution question
2000-10-19 21:17 ` Bart Schaefer
@ 2000-10-20 7:52 ` Thomas Köhler
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Köhler @ 2000-10-20 7:52 UTC (permalink / raw)
To: Paul Lew, zsh-users
[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]
On Thu, Oct 19, 2000 at 02:17:58PM -0700,
Bart Schaefer <schaefer@candle.brasslantern.com> 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@picard.franken.de | LCARS - Linux
<>< WWW: http://jeanluc-picard.de | for Computers
IRC: jeanluc | on All Real
PGP public key available from Homepage! | Starships
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-10-20 7:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-19 20:54 .zwc file execution question Paul Lew
2000-10-19 21:17 ` Bart Schaefer
2000-10-20 7:52 ` Thomas Köhler
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).