ELTCLSH(1)
β¨ ELTCLSH(1) β¨
okay bestie, so this is from the General Commands Manual and it's literally about eltclsh π
πΈ NAME πΈ
eltclsh β interactive tcl interpreter π
π¦ SYNOPSIS π¦
eltclsh [filename]
π DESCRIPTION π
eltclsh (editline tcl shell) is an interactive shell for the TCL programming language, and it's honestly iconic β¨ It gives you command line editing, history browsing, and variables and command completion thanks to editline features. The completion engine is programmable in a way similar to tcsh(1), and it comes with an intelligent completion for the full tcl language by default. periodt. π
π SPECIAL TCL COMMANDS π
eltclsh provides a few specific commands to configure interactive editing, and they're all under the el::history umbrella, so let's get into it π«Ά
el::history add stringβ literally just addsstringto the history of commands. slay. πel::history event ?event?β returns the value of the event given byevent. Ifeventis positive, it refers to the event with that number (all events are numbered starting at 1, iykyk). If the number is negative, it selects an event relative to the current event (-1refers to the previous event,-2to the one before that, and so on, you get the vibe). Event0refers to the current event.eventdefaults to-1. no cap. πel::history change ?string? ?event?β replaces the value recorded for an event withstring.Eventspecifies the event to replace, and defaults to the current event. This command is intended for use in commands that implement new forms of history substitution and wish to replace the current event (which invokes the substitution) with the command created through substitution. The return value is an empty string. lowkey meta but it's giving main character energy. π₯el::history file ?filename?β loads history fromfilenameand sets the filename for future saves, or returns the current filename. Note that if~/.eltclhistoryexists and is readable it is automatically loaded at startup. Iffilenameis the empty string, history loading and saving are disabled. big yikes if you do that btw. π«£el::history saveβ saves history in~/.eltclhistoryby default, or in the filename configured byhistory file. History is automatically saved on exit. the way that just works β¨el::history size ?length?β sets history length tolengthor returns current length. simple as that bestie. π―el::history clearβ erases the history list. The current keep limit is retained. ngl this one hurts a little but sometimes you gotta do what you gotta do π
π SEE ALSO π
tclsh(1). go check it out, iykyk π¦
π and that's the whole thing bestie. this page is from the LAAS and it's dated July 3, 2003 β iconic vintage energy fr fr. you're so welcome. πβ¨π
π¦ where this page comes from
- alpine 3.24: eltclsh-doc 1.20-r1 Β· BSD-2-Clause
- nixos 26.05: eltclsh 1.20
- nixpkgs unstable: eltclsh 1.20
- Copyright (c) 2003,2011-2012 LAAS/CNRS -- Mon Jul 7 2003
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms