home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / tcl / tcl_1 / !Tcl_doc_tclsh < prev    next >
Encoding:
Text File  |  1994-09-06  |  1.5 KB  |  45 lines

  1. tclsh
  2.  
  3. tclsh runs the Tcl language with RISCOS extensions.
  4.  
  5. Usage: tclsh ?-<flags>? ?<filename>? ...
  6.  
  7. tclsh keeps flags corresponding to the 26 lower case letters.
  8.  
  9. These flags are initially all off. They are first read from the system
  10. variable tclsh$Options, which is set when the !Tcl directory is seen by
  11. the filer.
  12.  
  13. If a -<flags> option is used it can override these defaults. Preceding a
  14. letter with ~ turns the option off.
  15.  
  16. A string consisting of all the options that are on is passed to the Tcl program
  17. in variable argv(flags).
  18.  
  19. tclsh interprets some of the options itself
  20.  
  21.    b   print a banner
  22.    c   take input from the command line after reading any files succesfully
  23.    e   take input from the command line after an error in any file
  24.    i   interpret the file <Tcl$Dir>.library.init
  25.  
  26. before interpreting any files the variable argv(file) is set to the filename
  27. provided, or "" if none. The variable argc is set to the number of remaining
  28. arguments. The variables argv(0) ... argv(argc-1) are set to the remaining
  29. arguments.
  30.  
  31. If a filename is provided this file is run after any init file.
  32. Finally if the c flag is set tclsh takes commands from the standard input.
  33.  
  34. Commands are buffered until a complete command is received with braces matched.
  35. A backslash (\) at the end of a line indicates it is incomplete.
  36.  
  37. Partial lines are prompted for with >> rather than > .
  38.  
  39. tclsh includes the history command for recalling previous commands.
  40.  
  41. To exit tclsh either
  42.   enter close braces }}}} until a > prompt is obtained then enter "exit"
  43.   or press escape.
  44.  
  45.