I find these to be pretty portable across Unixes:

#!/bin/sh
# the next line restarts using wish \
exec wish "$0" "$@"

<tcl/tk code>


#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"

<tcl code>


: # A comment mentioning perl
eval 'exec perl -S $0 ${1+"$@"}'
        if 0;

<perl code>


(the latter sh ":" trick is required on Linux because the kernel is a little
brain dead in parsing the #! line)

Karl


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to