This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: #! magic for finding Cygwin Tcl shell
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