ELTCLSH(1)

πŸ“¦ version 1.20, in alpine 3.24, nixos 26.05, nixpkgs unstable

✨ 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 adds string to the history of commands. slay. πŸ’…
  • el::history event ?event? β€” returns the value of the event given by event. If event is 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 (-1 refers to the previous event, -2 to the one before that, and so on, you get the vibe). Event 0 refers to the current event. event defaults to -1. no cap. πŸ“š
  • el::history change ?string? ?event? β€” replaces the value recorded for an event with string. Event specifies 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 from filename and sets the filename for future saves, or returns the current filename. Note that if ~/.eltclhistory exists and is readable it is automatically loaded at startup. If filename is the empty string, history loading and saving are disabled. big yikes if you do that btw. 🫣
  • el::history save β€” saves history in ~/.eltclhistory by default, or in the filename configured by history file. History is automatically saved on exit. the way that just works ✨
  • el::history size ?length? β€” sets history length to length or 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