home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / tclshell / initialize next >
Encoding:
Text File  |  1993-10-26  |  2.1 KB  |  39 lines  |  [TEXT/$Tcl]

  1.  
  2.  
  3.           When Extended Tcl is installed, the standard  runtime  files
  4.           are  places in the Tcl master directory, which is configured
  5.           when Tcl is built.  This master directory normally  contains
  6.           the  Tcl initialization file (TclInit.tcl), the standard Tcl
  7.           library files (tcl.tlib, tk.tlib) and the help  files.   The
  8.           Tcl master directory is named after the version of Tcl it is
  9.           associated with, e.g. /usr/local/tclX7.0a.  The path to  the
  10.           Tcl master directory is available from the info library com-
  11.           mand.
  12.  
  13.           The first step in initializing the Tcl shell  is  to  locate
  14.           the  Tcl  initialization  file, normally TclInit.tcl.  If an
  15.           environment variable TCLINIT exists, it contains the path to
  16.           the  Tcl  initialization  file.   If the TCLINIT environment
  17.           variable is not set, the file TclInit.tcl is used  from  the
  18.           default Tcl master directory.
  19.  
  20.           Tcl  then  evaulates  the  Tcl  initialization  file.    The
  21.           auto_path  variable  is initialized to the Tcl master direc-
  22.           tory and may be augmented by the intialization file  or  the
  23.           application.   Other  procedures  and  variables used by the
  24.           Extended Tcl shell are also defined by this file.
  25.  
  26.           If the Tcl is invoked interactively, it will source  a  file
  27.           named  .tclrc  in  the  user's home directory, if it exists.
  28.           Tcl is viewed primarily as a programming  language,  not  an
  29.           interactive  shell,  so  the  .tclrc is intended for use for
  30.           loading development utilities, not to support  applications,
  31.           which  should  not have to rely on the user's environment in
  32.           such a manner.
  33.  
  34.           Some applications, such as wishx, have additional  initiali-
  35.           zation  files.   They  may  have  environment variables that
  36.           override the default location of thise initialization files.
  37.           Tcl  global  variable auto_path will contain the directories
  38.           contain those initialization files.
  39.