Version 1 of wish application template

Updated 2003-01-28 15:55:34

This template code is for starting a typical wish application.

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

 package require -exact Tk $tcl_version

This is a little more sophisticated than the code suggested on the tclsh man page (see tcl), and is explained in great detail on exec magic.


Category Example