xotclsh(1)

πŸ’– xotclsh(1) β€” Command-line interface πŸ’–

okay bestie, listen up, because this one is genuinely so cute and so useful. this is the manual for xotclsh, and no cap, it's lowkey the little shell that could. ✨


🌸 NAME 🌸

xotclsh β€” a simple shell that contains an NSF/XOTcl2 interpreter, iykyk πŸ’…


✨ SYNOPSIS ✨

xotclsh ?fileName?

πŸ¦‹ DESCRIPTION πŸ¦‹

xotclsh ?fileName?

okay so xotclsh is a shell-like application, right? it reads XOTcl2 and Tcl commands from its standard input, or from fileName, and then it evaluates them. that's the whole vibe. πŸŽ€

if you invoke it with no fileName, bestie, it runs in REPL mode β€” meaning it reads commands from standard input and prints command results and error messages to standard output. it just keeps going like that until the exit command is invoked, or until it reaches end-of-file on its standard input. main character energy, honestly. periodt. πŸ‘‘

fun fact: you can use xotclsh just like tclsh to make XOTcl2 scripts directly invocable from the shell β€” just give the script this first line (the "shebang", yes that's the real name 🌈):

#! /usr/bin/env xotclsh

and if you want a (more portable) alternative, you go with this one instead:

#! /bin/sh
# the next line restarts using xotclsh \
    exec xotclsh "$0" "$@"

two options, both iconic, pick your fighter. 🫢


Copyright (c) 2014 Stefan Sobernig <stefan.sobernig@wu.ac.at>, Gustaf Neumann <gustaf.neumann@wu.ac.at>; available under the Creative Commons Attribution 3.0 Austria license (CC BY 3.0 AT).


and that's the whole page, bestie!! 🌟 this was xotclsh, version 2.4.0, from the xotclsh(1) manual β€” thank you for coming to my ted talk, mwah πŸ’–πŸŒΈπŸ’…

πŸ“¦ where this page comes from