public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Jonathan Larmour <jifl@eCosCentric.com>
Cc: John Dallaway <john@dallaway.org.uk>, ecos-devel@ecos.sourceware.org
Subject: Re: #! magic for finding Cygwin Tcl shell
Date: Tue, 06 Jan 2009 19:10:00 -0000	[thread overview]
Message-ID: <4963AC97.4070405@mlbassoc.com> (raw)
In-Reply-To: <4963A830.6090600@eCosCentric.com>

Jonathan Larmour wrote:
> 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.

Does CygWin have '/usr/bin/env'?  This is the "modern" way
to handle this:

 #! /usr/bin/env tclsh
 ...


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

  reply	other threads:[~2009-01-06 19:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-06 18:02 John Dallaway
2009-01-06 18:51 ` Jonathan Larmour
2009-01-06 19:10   ` Gary Thomas [this message]
2009-01-06 19:44     ` Jonathan Larmour
2009-01-07  9:44       ` John Dallaway
2009-01-07 13:39         ` Jonathan Larmour
2009-01-07 17:06           ` John Dallaway
2009-01-06 19:13   ` John Dallaway
2009-01-06 19:37     ` Jonathan Larmour
2009-01-06 20:04       ` Sergei Gavrikov
2009-01-06 20:01 ` Bart Veer
2009-01-07 11:10 ` Tarmo Kuuse
2009-01-07 11:53   ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4963AC97.4070405@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=ecos-devel@ecos.sourceware.org \
    --cc=jifl@eCosCentric.com \
    --cc=john@dallaway.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).