From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23965 invoked from network); 11 Mar 2004 02:13:59 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2004 02:13:59 -0000 Received: (qmail 23803 invoked by alias); 11 Mar 2004 02:13:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7129 Received: (qmail 23784 invoked from network); 11 Mar 2004 02:13:36 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Mar 2004 02:13:36 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Mar 2004 2:13:35 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B1FhX-0000SZ-00 for ; Thu, 11 Mar 2004 03:13:35 +0100 Received: from isi-dialin-129-142.isionline-dialin.de ([195.158.129.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Mar 2004 03:13:35 +0100 Received: from thorsten by isi-dialin-129-142.isionline-dialin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Mar 2004 03:13:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Thorsten Kampe Subject: zcompiled scripts Date: Thu, 11 Mar 2004 03:13:28 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: isi-dialin-129-142.isionline-dialin.de User-Agent: 40tude_Dialog/2.0.10.1de Sender: news 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