From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2999 invoked by alias); 5 Jan 2005 23:14:41 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 2865 invoked from network); 5 Jan 2005 23:14:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 5 Jan 2005 23:14:32 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j05NEWoh010589 for ; Wed, 5 Jan 2005 18:14:32 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j05NEWr31548; Wed, 5 Jan 2005 18:14:32 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j05NEV46013794; Wed, 5 Jan 2005 18:14:31 -0500 Subject: Re: expect and tclsh give different output from "clock scan" From: Keith Seitz To: Brad Gutt Cc: "insight@sources.redhat.com" In-Reply-To: <20041222172002.76779.qmail@web53610.mail.yahoo.com> References: <20041222172002.76779.qmail@web53610.mail.yahoo.com> Content-Type: text/plain Message-Id: <1104966871.2743.365.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Wed, 05 Jan 2005 23:14:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-q1/txt/msg00001.txt.bz2 On Wed, 2004-12-22 at 09:20, Brad Gutt wrote: > So, why is the output of clock scan different between > expect and tclsh? Isn't expect using the same code as > tclsh is using? No, as a matter of fact, they are not using the same code. Expect on cygwin is a "unix" application, i.e., it uses cygwin's posix layer to call time() (from tclUnixTime.c): expect1.1> set ::tcl_platform(platform) unix tclsh84> set ::tcl_platform(platform) windows On windows, it uses some goofy windowsy thing in tclWinTime.c to get the time. My guess is that cygwin/unix code and the windows code use different epochs. Keith