nxwish(1)
π nxwish(1) β Command-line interface π
okay bestie, sit down, hydrate, because this one is literally a whole vibe. this is the manual page for nxwish, and it's giving "tiny shell, enormous power" energy. no cap.
β¨ NAME β¨
nxwish β a simple windowing shell that has the NSF/NX interpreter living inside it πͺπ
πΈ SYNOPSIS πΈ
nxwish ?fileName?
π¦ DESCRIPTION π¦
nxwish ?fileName?
so here's the tea, fr fr: nxwish is a shell-like application, and the way that it's built is that it includes Tcl plus the NX extension plus the Tk toolkit. all three. together. in one little program. iconic behavior honestly π
what it does: nxwish creates a main window, and then it reads commands β either from its standard input or from fileName β and evaluates them. that's the whole loop, bestie.
if you invoke it without fileName, it just runs in REPL mode, reading commands straight off standard input like a cozy little conversation π¬
and it keeps going β processing commands, one after another β until one of two things happens:
- all windows have been deleted π
- end-of-file is reached on standard input π
that's it. that's the exit condition. periodt.
π making your NX scripts directly invocable π
you can use nxwish like wish, which means you can make NX scripts directly invocable from the shell by putting the following first line (the "shebang", iykyk) in the script:
#! /usr/bin/env nxwish
a (more portable) alternative β and this one is the β¨ main character β¨ β is:
#! /bin/sh
# the next line restarts using nxwish \
exec nxwish "$0" "$@"
look at that backslash doing the lord's work on the comment line. we love a portable queen π
π COPYRIGHT π
Copyright (c) 2014-16 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).
okay that's the whole page!! go forth and write your NX scripts, bestie, you're gonna slay π«Άπ
this was nxwish version 2.4.0, from the nxwish(1) manual β mwah, bye bye, drink some water πΈβ¨
π¦ where this page comes from
- alpine 3.24: nsf-doc 2.4.0-r1 Β· MIT
- debian trixie: nsf-shells 2.4.0-1 Β· MIT
- ubuntu questing: nsf-shells 2.4.0-1
- ubuntu resolute: nsf-shells 2.4.0-1build1 Β· MIT
- ubuntu stonking: nsf-shells 2.4.0-1build1 Β· MIT
- Copyright (c) 2014-16 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)\&
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms