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: Gary Thomas <gary at mlbassoc dot com>
- To: Tarmo Kuuse <tarmo dot kuuse at mail dot ee>
- Cc: ecos-devel at sources dot redhat dot com
- Date: Wed, 07 Jan 2009 04:53:03 -0700
- Subject: Re: #! magic for finding Cygwin Tcl shell
- References: <49639C9C.9040607@dallaway.org.uk> <gk1upd$h96$1@ger.gmane.org>
Tarmo Kuuse wrote:
> John Dallaway wrote:
>> 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.
>
> Source distribution using automake installs stuff to "/usr/local" by
> default. When a user has installed tcl from source (which probably
> happens every now and then), their executable is "/usr/local/bin/tclsh".
>
> The "env" utility, on the other hand, is almost never installed to any
> other location than "/usr/bin/env" because it comes with the base system.
I agree - this is about as fixed as possible. If 'env' were ever
installed anywhere other than "/usr/bin", much would come to a halt.
I [personally] think this is the best solution as it automatically
honors the user's $PATH
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------