history
history ?option? ?arg ...?
The list of the commands of a session, as in Tcl: add, change, clear, event, info, keep, nextid, and redo.
Examples
history add {set a 1}; history nextidgives2
Facts
- Capability:
package. A new interpreter does not have this command. See Limits and capabilities. - Compute cost: one compute unit for the call, and more for the commands that it runs.