carta
xotclsh(1)

xotclsh1

Simple shell containing nsf/xotcl2 interpreter

Usage

xotclsh ?fileName?


    


    

Overview

xotclsh ?fileName?

xotclsh is a shell-like application that reads XOTcl2 and Tcl commands from its standard input or from fileName and evaluates them. If invoked without fileName, then it runs in REPL mode, reading commands from standard input and printing command results and error messages to standard output. It runs until the exit command is invoked or until it reaches end-of-file on its standard input.

xotclsh can be used like tclsh to make XOTcl2 scripts directly invocable from the shell, by providing the following first line ("shebang") in the respective script:

	#! /usr/bin/env xotclsh

A (more portable) alternative is:

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

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm) to Debian 8 (Jessie)
  • Debian 7 (Wheezy) to Debian 5.0 (Lenny)
  • Debian 3.0 (Woody)

From nsf-shells 2.4.0-1 in Debian 13 (Trixie). Also shipped by xotcl-shells. Parsed by carta from the page's man source.