1library(n) Tcl Built-In Commands library(n)
2
3
4
5______________________________________________________________________________
6
8 auto_execok, auto_import, auto_load, auto_mkindex, auto_qualify,
9 auto_reset, tcl_findLibrary, parray, tcl_endOfWord,
10 tcl_startOfNextWord, tcl_startOfPreviousWord, tcl_wordBreakAfter,
11 tcl_wordBreakBefore - standard library of Tcl procedures
12
14 auto_execok cmd
15 auto_import pattern
16 auto_load cmd
17 auto_mkindex dir pattern pattern ...
18 auto_qualify command namespace
19 auto_reset
20 tcl_findLibrary basename version patch initScript enVarName varName
21 parray arrayName ?pattern?
22 tcl_endOfWord str start
23 tcl_startOfNextWord str start
24 tcl_startOfPreviousWord str start
25 tcl_wordBreakAfter str start
26 tcl_wordBreakBefore str start
27______________________________________________________________________________
28
30 Tcl includes a library of Tcl procedures for commonly-needed functions.
31 The procedures defined in the Tcl library are generic ones suitable for
32 use by many different applications. The location of the Tcl library is
33 returned by the info library command. In addition to the Tcl library,
34 each application will normally have its own library of support proce‐
35 dures as well; the location of this library is normally given by the
36 value of the $app_library global variable, where app is the name of the
37 application. For example, the location of the Tk library is kept in
38 the variable tk_library.
39
40 To access the procedures in the Tcl library, an application should
41 source the file init.tcl in the library, for example with the Tcl com‐
42 mand
43
44 source [file join [info library] init.tcl]
45
46 If the library procedure Tcl_Init is invoked from an application's
47 Tcl_AppInit procedure, this happens automatically. The code in
48 init.tcl will define the unknown procedure and arrange for the other
49 procedures to be loaded on-demand using the auto-load mechanism defined
50 below.
51
53 The following procedures are provided in the Tcl library:
54
55 auto_execok cmd
56 Determines whether there is an executable file or shell builtin
57 by the name cmd. If so, it returns a list of arguments to be
58 passed to exec to execute the executable file or shell builtin
59 named by cmd. If not, it returns an empty string. This command
60 examines the directories in the current search path (given by
61 the PATH environment variable) in its search for an executable
62 file named cmd. On Windows platforms, the search is expanded
63 with the same directories and file extensions as used by exec.
64 Auto_execok remembers information about previous searches in an
65 array named auto_execs; this avoids the path search in future
66 calls for the same cmd. The command auto_reset may be used to
67 force auto_execok to forget its cached information.
68
69 auto_import pattern
70