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.
-- Kind regards, Tarmo Kuuse