C Shell for Windows

Tropibyte, Inc.·Tropibyte.cshw

A native Windows command shell with csh/tcsh-flavored syntax, 225+ builtins, real concurrency primitives, arbitrary-precision math, and built-in AI.

cshw is a native Windows command shell with csh/tcsh-flavored syntax. Familiar Unix shell ergonomics meet first-class Win32 access -- no WSL, no Cygwin, no compatibility layer. 225+ builtin commands cover file ops, text processing (grep with PCRE2, sed, awk, sort with -t/-k, head/tail with -f), real concurrency primitives (coroutines, mutex, semaphore, barrier, channel), Win32 calls (rundllproc, winapi, dllimport), and built-in AI (OpenAI, Anthropic, Azure, Ollama, LM Studio). Runs your existing .bat, .cmd, and .ps1 scripts unchanged. The bc/dc commands offer arbitrary-precision arithmetic with an opt-in exact-rational tier (bc -x) including complex numbers and small exact matrices. As of 1.0.8.0, cshw ships a signed server family: the tsrvd supervisor runs out-of-process protocol handlers -- native SMTP, POP3, and IMAP over a shared Maildir, FTP, and a real HTTP/HTTPS/CGI server (http.dll) that speaks HTTP/1.1 and HTTP/2 -- and the new quicsrv worker serves HTTP/3 over QUIC through the same serving core. The fetch client gains native HTTP/2 (--http2) and HTTP/3 (--http3) modes that guarantee the protocol. Ships with a 22-chapter user guide.

winget install --id Tropibyte.cshw --exact --source winget

Latest 1.0.8.3·July 28, 2026

Release Notes

Fixed: a quoted argument starting with < or > was treated as a redirect. Upgrade for this one. The redirect parser looked only at the first character of each token and never at the token's type, so a quoted string beginning with an angle bracket was parsed as a redirect operator rather than as data. The lexer had always distinguished the two; the parser simply never asked.

It failed in two ways, and the quiet one is the reason this is a same-day release.

When the text after > was not a legal Windows filename, the open failed and you saw 'echo' failed (errno 22) with the command's output silently dropped. That is how it was found: tests/run_all_tests.cshw prints echo ">>> Running: $1" before each suite, and all 81 of those lines were being destroyed, along with the matching <<< PASSED / <<< FAILED lines.

When the text was a legal filename there was no error at all. echo ">notes.txt" truncated notes.txt, consumed the token as a redirect, and left echo with no arguments -- so echo wrote its own Echo is ON status into the file it had just destroyed. A line written to print a string destroyed a file instead, silently. Anything quoting an angle bracket was exposed: markdown blockquotes, grep "<div>" page.html, generated HTML or XML.

Quoted tokens are now skipped when scanning for redirects. Real redirects are unaffected.

Installer type: inno

x642C1FAB3AC16CFA1AB75CB3F4893E1FDAAC20F91C94B4BEF374FF354F09985681

Details

Homepage
https://www.tropibyte.com/cshw.html
License
PolyForm Small Business 1.0.0
Publisher
Tropibyte, Inc.
Support
https://www.tropibyte.com/bugs.html
Privacy Policy
https://www.tropibyte.com
Copyright
Copyright (c) 2024-2026 Tropibyte, Inc.
Moniker
cshw

Tags

shellcshtcshcommand-linecliterminalunixwin32scriptingdeveloper-tools

Older versions (4)

1.0.8.1
x647E7B52A3F3487F4D12323B41827376FB84F8FF2A1490B9E84121F105F350AA09
1.0.8.0
x64BA3E29E1A1709214D17428E9FBEE624425488170E22FBD8E4EAD162A031A5C24
1.0.7.1
x644D7EFB291C2E76C2C43A636E240FD6C918589B37D1935AF014864980D2F7409E
1.0.7.0
x64A7007611811CF318DE2F330C8CCC502717EEBF8DB4A8EDBDEA76FA8F91416BA9