home *** CD-ROM | disk | FTP | other *** search
- tclsh
-
- tclsh runs the Tcl language with RISCOS extensions.
-
- Usage: tclsh ?-<flags>? ?<filename>? ...
-
- tclsh keeps flags corresponding to the 26 lower case letters.
-
- These flags are initially all off. They are first read from the system
- variable tclsh$Options, which is set when the !Tcl directory is seen by
- the filer.
-
- If a -<flags> option is used it can override these defaults. Preceding a
- letter with ~ turns the option off.
-
- A string consisting of all the options that are on is passed to the Tcl program
- in variable argv(flags).
-
- tclsh interprets some of the options itself
-
- b print a banner
- c take input from the command line after reading any files succesfully
- e take input from the command line after an error in any file
- i interpret the file <Tcl$Dir>.library.init
-
- before interpreting any files the variable argv(file) is set to the filename
- provided, or "" if none. The variable argc is set to the number of remaining
- arguments. The variables argv(0) ... argv(argc-1) are set to the remaining
- arguments.
-
- If a filename is provided this file is run after any init file.
- Finally if the c flag is set tclsh takes commands from the standard input.
-
- Commands are buffered until a complete command is received with braces matched.
- A backslash (\) at the end of a line indicates it is incomplete.
-
- Partial lines are prompted for with >> rather than > .
-
- tclsh includes the history command for recalling previous commands.
-
- To exit tclsh either
- enter close braces }}}} until a > prompt is obtained then enter "exit"
- or press escape.
-
-