The info_data command returns sets of Tcl assignment statements that are useful to display the value of data items, or to save, transport, or restore the value of data items. For example, the statements could be sent as a message to another process, and executed using the eval command. The name_pattern argument is used to specify which data items are to be reported on, and it follows the same matching rules as info vars and string match. The optional level argument defaults to #0 which is the global scope, but a value of 1 can be used to report on the data items that exist in the callers stack frame. This argument is explained with the Tcl uplevel command. The optional separator argument is used to override the default use of the space character and a newline which are used to separate assignment statements in the result.
For example:
% info_data tc* set tcl_interactive 1 set tcl_libPath {C:/usr/local/lib/tcl8.3 C:/usr/local/lib/tcl8.3 C:/usr/lib/tcl8.3 C:/usr/lib/tcl8.3/library C:/usr/library C:/usr/../tcl8.3/library C:/../tcl8.3/library} set tcl_library C:/usr/local/lib/tcl8.3 set tcl_patchLevel 8.3.2 set tcl_platform(byteOrder) littleEndian set tcl_platform(machine) intel set tcl_platform(os) {Windows NT} set tcl_platform(osVersion) 5.0 set tcl_platform(platform) windows set tcl_platform(user) hume set tcl_rcFileName ~/.dmhrc set tcl_traceCompile 0 set tcl_traceExec 0 set tcl_version 8.3
This command is distributed with the Hume Datahub SDK, and is not part of the ordinary Tcl/Tk distribution.