From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3338 invoked by alias); 9 Jan 2005 21:52:20 -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 3289 invoked from network); 9 Jan 2005 21:52:14 -0000 Received: from unknown (HELO web53603.mail.yahoo.com) (206.190.37.36) by sourceware.org with SMTP; 9 Jan 2005 21:52:14 -0000 Received: (qmail 99041 invoked by uid 60001); 9 Jan 2005 21:52:13 -0000 Message-ID: <20050109215213.99039.qmail@web53603.mail.yahoo.com> Received: from [209.210.229.214] by web53603.mail.yahoo.com via HTTP; Sun, 09 Jan 2005 13:52:13 PST Date: Sun, 09 Jan 2005 21:52:00 -0000 From: Brad Gutt Subject: Re: expect and tclsh give different output from "clock scan" To: Keith Seitz Cc: "insight@sources.redhat.com" In-Reply-To: <1104966871.2743.365.camel@lindt.uglyboxes.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-q1/txt/msg00004.txt.bz2 Thanks Keith. Wow! The Expect binary and the Tcl binary that I'm using on my PC are both coming from the same version of Cygwin, and therefore the response of ::tcl_platform(platform) being different is even a more serious flaw than the issue with "clock scan"! I expect (pardon the pun) that Expect should be using the exact same source code as Tcl, in fact, I would have expected Expect to just use Tcl as a library/framework and just add Expect-specific Tcl C commands and procs to supply additional functionality, just like normal Tcl based applications. Is it that Expect has an old copy of Tcl source in its tree? If so, do you or anyone know why that is? Or, better yet, is there some Expect-specific mailing list in which I can investigate this problem further, so as to not bother the insight group with this? Thanks! Brett --- Keith Seitz wrote: > 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 > > __________________________________ Do you Yahoo!? All your favorites on one personal page – Try My Yahoo! http://my.yahoo.com