This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: #! magic for finding Cygwin Tcl shell
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: John Dallaway <john at dallaway dot org dot uk>
- Cc: ecos-devel at ecos dot sourceware dot org
- Date: Tue, 06 Jan 2009 18:51:28 +0000
- Subject: Re: #! magic for finding Cygwin Tcl shell
- Openpgp: id=A5FB74E6
- References: <49639C9C.9040607@dallaway.org.uk>
John Dallaway wrote:
> 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?
Yes, it may not be in /usr/bin. I don't mind the cygwin-specific cygpath
bits being dropped, but I'd still want it to be found from the PATH by some
means.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------ Opinions==mine