Index: nxwish.in =================================================================== diff -u -rb111807bd1e55f1975df2fc34bfef692989d61a3 -rf6b33f642a1d30f8d7b44c556c86302f8539be3c --- nxwish.in (.../nxwish.in) (revision b111807bd1e55f1975df2fc34bfef692989d61a3) +++ nxwish.in (.../nxwish.in) (revision f6b33f642a1d30f8d7b44c556c86302f8539be3c) @@ -1,7 +1,15 @@ -#! /usr/bin/env tclsh -#! @NSF_COMPATIBLE_TCLSH@ +#! /bin/sh +# Lookup a Tcl interpreter \ + INTERP="tclsh@TCL_VERSION@"; \ + INTERPS="@NSF_COMPATIBLE_TCLSH@ @TCL_EXEC_PREFIX@/bin/$INTERP"; \ + for interp in $INTERPS; \ + do if [ -x $interp ]; then INTERP=$interp; break; \ + fi; done; \ + exec $INTERP "$0" ${1+"$@"} + # -*- tcl -*- puts [info nameofexecutable] + # # Tiny scripted replacement of a binary nxwish (former xowish). This # script can be used as interactive shell for testing or like a