* zcompiled scripts
@ 2004-03-11 2:13 Thorsten Kampe
2004-03-11 3:21 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Kampe @ 2004-03-11 2:13 UTC (permalink / raw)
To: zsh-users
Hi,
is it possible to test for a compiled script (.zwc) whether the script
or the complied version ist executed?
I made a script with "echo 111" inside and compiled it with "zcompile
test.zsh". After that I modified the script to "echo 222" and
executed "touch test.zsh.zwc" to fool zsh in believing that the old
"test.zsh.zwc" is the newer one of both.
But unfortunately "./test.zsh" displayed "222" (the value of the
script) and not "111" (the value of the compiled script).
Anyone hints?
Thorsten
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: zcompiled scripts
2004-03-11 2:13 zcompiled scripts Thorsten Kampe
@ 2004-03-11 3:21 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2004-03-11 3:21 UTC (permalink / raw)
To: zsh-users
On Mar 11, 3:13am, Thorsten Kampe wrote:
}
} is it possible to test for a compiled script (.zwc) whether the script
} or the complied version ist executed?
The compiled version of a script is never executed.
Compilation applies only to files loaded with the "." or "source"
commands, or to (possibly auto-)loading of shell functions, not to
scripts that execute as standalone programs.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-11 3:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 2:13 zcompiled scripts Thorsten Kampe
2004-03-11 3:21 ` Bart Schaefer
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).