From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21515 invoked by alias); 7 Jan 2009 17:06:54 -0000 Received: (qmail 21502 invoked by uid 22791); 7 Jan 2009 17:06:53 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_73,J_CHICKENPOX_93 X-Spam-Check-By: sourceware.org Received: from mtaout03-winn.ispmail.ntl.com (HELO mtaout03-winn.ispmail.ntl.com) (81.103.221.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Jan 2009 17:06:48 +0000 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090107170631.XQRC7670.mtaout03-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com>; Wed, 7 Jan 2009 17:06:31 +0000 Received: from cog.dallaway.org.uk ([213.106.92.119]) by aamtaout02-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090107170631.MIYM21638.aamtaout02-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Wed, 7 Jan 2009 17:06:31 +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 n07H6I2Y007970; Wed, 7 Jan 2009 17:06:19 GMT Message-ID: <4964E10A.5080507@dallaway.org.uk> Date: Wed, 07 Jan 2009 17:06:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.18 (X11/20081120) MIME-Version: 1.0 To: Jonathan Larmour CC: ecos-devel@ecos.sourceware.org Subject: Re: #! magic for finding Cygwin Tcl shell References: <49639C9C.9040607@dallaway.org.uk> <4963A830.6090600@eCosCentric.com> <4963AC97.4070405@mlbassoc.com> <4963B47A.8040400@eCosCentric.com> <49647969.5060206@dallaway.org.uk> <4964B087.3090901@eCosCentric.com> In-Reply-To: <4964B087.3090901@eCosCentric.com> 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/msg00016.txt.bz2 Jonathan Larmour wrote: > John Dallaway wrote: >> >> "#! /usr/bin/env tclsh" will work for modern Cygwin, but are we able to >> guarantee the availability and location of "env" any more than that of >> "tclsh" for some arbitrary UNIX-like OS? > > 'env' is a utility defined by POSIX, whereas 'tclsh' isn't. > >> There has been no objection to dropping support for tclsh83 and >> cygtclsh80 so, for the time being, I will take the robust and minimally >> invasive approach of tweaking the CDL make rule to call "tclsh >> heapgen.tcl ..." directly. Clearly we don't need the convenience of #! >> magic in this particular context. > > We may as well have an identical solution for all scripts, including > those that do want to be invoked directly on the command line. OK. There are 9 occurrences: devs/framebuf/synth/current/src/gen_synthfb.tcl ecosadmin.tcl fs/rom/current/support/file2c.tcl hal/mips/ref4955/current/misc/swap4.tcl hal/mips/ref4955/current/misc/slow_cat.tcl hal/arm/e7t/current/src/flash_cksum.tcl hal/arm/aeb/current/src/flash_cksum.tcl io/framebuf/current/src/gen_framebufs.tcl pkgconf/fixhtml.tcl services/memalloc/common/current/src/heapgen.tcl I will clean these up to use "#! /usr/bin/env tclsh". John Dallaway