The complete book. 26 chapters, from the first prompt through coroutines, synchronization, networking, plugin DLLs, and standalone servers. Every command it describes is in the command reference.
Understanding what cshw is — and what it isn't; Seeing why a Unix-style shell on Windows actually matters; Getting a feel for the command line as a place to live
Getting cshw onto your computer; Running the install command to wire it into your PATH; Launching cshw for the first time
Moving around the filesystem with cd and pwd; Listing what's there with ls and dir; Reading files with type (and a peek at cat)
Creating and removing directories; Copying, moving, and deleting files (and the safety rules that come with deleting); Finding files anywhere on disk with find
Shell variables (set, unset) and how cshw infers types; Environment variables (setenv, unsetenv, printenv, env); The crucial difference between shell variables and environment variables
The pipe (|) — the single most important shell concept you'll learn; Output redirection: >, >>; Input redirection: <
Recalling previous commands with the up/down arrows and history; Tab completion: how it works by default, and how to customize it; The complete and uncomplete commands for per-command rules
What a script is and why you'd write one; Writing, saving, and running your first .cshw script; The four ways to run a script (and when to use each)
Making decisions with if, else, and endif; The full condition language: comparisons, logic, grouping, file tests; Repeating with while, do/while, for, loop, and foreach
Why scripts need procedures; Defining a procedure with proc and endproc; Calling procedures and reading their results
A quick refresher on what Chapter 5 covered; Iterating over arrays with foreach and loop; Building arrays at runtime from input, files, or computation
bc and dc
Why shell math (@) eventually runs out of road; One-shot bc calls, the REPL, and running scripts from files; bc as a real little language: variables, control flow, user functions
Why job control exists and what problem it solves; Launching commands in the background with &; Listing what's running with jobs
What coroutines are, and how they differ from background jobs; Launching a procedure as a coroutine with corunproc; Waiting for completion with cowait (including -all, -any, -timeout)
Why concurrent coroutines need coordination at all; Mutexes — for protecting non-atomic critical sections; Events — for signaling "this happened" across coroutines
Downloading files and calling HTTP APIs with fetch; FTP transfers with ftpfetch; One-shot TCP request/response with tcpclient
genai Command
What genai is and why it's in a shell at all; Registering AI providers — OpenAI, Anthropic, Azure, Ollama, LM Studio, or custom; Managing providers: list, default, test, models, remove
Why a Windows shell has access to the entire Windows platform — and most don't use it; Calling any Win32 API from a script with rundllproc; The argument type system (i:, u:, s:, a:, p:, b:, output buffers, ordinals)
tsrvd Daemon Family
Why cshw grew a second kind of server — one that survives a shell crash; The master/worker model: cshw supervises, tsrvd serves; Two ways to write a server: relay handlers (pure script) and native plugins (a DLL)
Why print doesn't work, and what does; The three ways bytes reach a page — and why cshw makes you choose; lp and lpr: sending a job
The ten commands that earn their keep; The two or three flags per command that are actually worth memorizing; Concrete examples for each — not the exhaustive man page, just the daily-driver usage
Ten places where cshw and cmd.exe part ways — and why each matters; Concrete demonstrations of the cshw way (and notes on the cmd.exe workaround, where there is one); A reality check on the historical reasons for the gap
The ten debugging-and-recovery tricks worth memorizing; The pattern for figuring out what's wrong rather than guessing; The send-off — what comes after the book