Skip to content

Releases: esix/cmd

cmd v1.0.1

Choose a tag to compare

@esix esix released this 27 Jun 06:34

Windows compatibility fixes:

  • Fix Windows drive-letter path expansion for %~dp0 and nested BAT calls.
  • Fix FOR /F command capture used by gw-batsic LIST output on Windows.
  • Store interactive history in the user's home directory as .cmd_history.
  • Work around stuck Alt state after Alt-Tab in the Windows readline REPL.

cmd v1.0.0

Choose a tag to compare

@esix esix released this 26 Jun 08:16

First release — a Windows BAT/CMD interpreter for Unix and Linux, written in Go.

Run .bat/.cmd scripts natively, or use it as an interactive shell with BAT
syntax. It reproduces a large slice of real cmd.exe behaviour (and quirks):
delayed expansion, FOR /L /F /D /R, SET /A, CALL/GOTO, pipes and
&&/|| chains, redirection, IF, and dynamic %DATE%/%TIME%/%RANDOM%.

Fidelity is checked against gw-batsic — a
GW-BASIC interpreter written entirely in batch — whose full test suite (1046
checks) passes with no divergence from Windows.

See the documentation and the
compatibility reference.

Downloads

Pick the archive for your platform, extract it, and run cmd (or cmd.exe):

Platform Asset
macOS (Apple Silicon) cmd_darwin_arm64.tar.gz
macOS (Intel) cmd_darwin_amd64.tar.gz
Linux x86-64 (Ubuntu/Debian/…) cmd_linux_amd64.tar.gz
Linux ARM64 cmd_linux_arm64.tar.gz
Windows x64 cmd_windows_amd64.zip
Windows ARM64 cmd_windows_arm64.zip

Binaries are statically linked with no runtime dependencies. Verify downloads
against SHA256SUMS.