From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18753 invoked by alias); 6 Jan 2009 18:02:14 -0000 Received: (qmail 18667 invoked by uid 22791); 6 Jan 2009 18:02:13 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73 X-Spam-Check-By: sourceware.org Received: from mtaout02-winn.ispmail.ntl.com (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 06 Jan 2009 18:02:10 +0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090106180206.SYAR4080.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Tue, 6 Jan 2009 18:02:06 +0000 Received: from cog.dallaway.org.uk ([213.106.92.119]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090106180206.KLQY19264.aamtaout01-winn.ispmail.ntl.com@cog.dallaway.org.uk> for ; Tue, 6 Jan 2009 18:02:06 +0000 Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id n06I24pS026788 for ; Tue, 6 Jan 2009 18:02:04 GMT Message-ID: <49639C9C.9040607@dallaway.org.uk> Date: Tue, 06 Jan 2009 18:02:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.18 (X11/20081120) MIME-Version: 1.0 To: ecos-devel@ecos.sourceware.org Subject: #! magic for finding Cygwin Tcl shell Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-01/txt/msg00004.txt.bz2 I was looking at support for UNC file paths in the eCos Configuration Tool today. The convoluted #! magic we use in our Tcl scripts to find a Cygwin Tcl shell is getting in the way when calling (eg) heapgen.tcl via a UNC repository path. This code is only needed to support installations of Cygwin that are more than 5 years old. Rather than increase the complexity of the #! magic still further, I think it now makes sense to revert to a simple "#! /usr/bin/tclsh" within our Tcl scripts. However, this would break compatibility with old Cygwin installations providing only tclsh8*.exe or cygtclsh80.exe. Any objections? John Dallaway