nxsh1
Simple shell containing nsf/nx interpreter
Usage
nxsh ?-c
?arg1??
?arg2 ...
?
Overview
nxsh?-c?arg1?? ?arg2 ...?-
nxshis a shell-like application that reads NX and Tcl commands from different sources and evaluates them.If invoked without any arguments,
nxshruns in read-eval-print mode (REPL, interactive) similar totclsh. In this mode, it reads commands from standard input interactively and prints command results as well as error messages to standard output. It remains active until the exit command is invoked or until it reaches end-of-file on its standard input.If invoked with at least one positional argument arg1,
nxshruns a NX/Tcl script sourced from a file identified by arg1 usingsource.Passing the
-cflag makesnxshaccept commands from the command line provided by arg1. If arg1 is omitted,nxshtakes commands from standard input (e.g., in a pipe).nxshcan be used liketclshto make NX scripts directly invocable from the shell, by providing the following first line ("shebang") in the respective script:#! /usr/bin/env nxsh
-
A (more portable) alternative is:
#! /bin/sh # the next line restarts using nxsh \ exec nxsh "$0" "$@"
Releases
5 releases since Debian 9 (Stretch); the text changed 3 times.