github reubeno/brush brush-shell-v0.5.0
brush v0.5.0

one day ago

๐Ÿš€ Release Notes

brush v0.5.0 is out!

It runs more Bash scripts unchanged, improves API surfaces for programmatic clients, and ships our first prebuilt Windows binaries (x64 and ARM64). The release wraps up roughly six months of work and more than 360 merged PRs since v0.4.0.

Try brush in your browser, no install required. The playground runs the same shell engine, though interactive features like tab completion differ from the installed shell.

A big thank-you to everyone who kicked the tires, filed issues, shared scripts and setups that broke, tested on interesting platforms, sent pull requests, or even just asked us questions. Since our last release, we saw our largest group of first-time contributors yet! Thank you all so much for making our project better one change at a time ๐Ÿ™

Installing or upgrading

On Linux or macOS, you can install releases with the new installer script:

# Latest stable release
curl --proto '=https' --tlsv1.2 -fsSL https://brush.sh/install.sh | sh

Alternatively, you can try nightly "canary" builds from main for the latest bleeding-edge changes:

# Unreleased canary build from main (re-run the command above to return to stable)
curl --proto '=https' --tlsv1.2 -fsSL https://brush.sh/install.sh | sh -s -- --canary

Prebuilt release archives are published for Linux, macOS, and, new for this release, Windows (x64 and ARM64)! You can also install from all the usual places; see the install docs for details.


Bash compatibility

This release continues raising our bar on real-world compatibility with Bash, backed by automated testing on every PR.

  • 96+% passing on the upstream bash-completion test suite (2,040 tests passing): sustained work across complete, compgen, and compopt along with assorted general compat improvements pushed our pass rate on the upstream bash-completion suite to its highest level yet. (Measurement is from our CI environment, with skipped tests excluded.)

  • 3,600+ Bash-oracle tests & end-to-end scenario tests: our Bash-oracle compatibility suite grew from ~2,100 to over 3,600 cases, joined by containerized end-to-end (E2E) test suites running automatically against bash-completion, fzf, atuin, mise, nvm, oh-my-git, starship, and zoxide. Not all of these tests are fully passing, but more pass with each fix and we're protected against regression by running them all with each PR.

  • Key compatibility wins: At least 144 commits in this release directly improved Bash compatibility. Here are a few highlights:

    • More reliable pipelines and jobs. Shell functions and command groups can run alongside other pipeline stages, fixing hangs when a writer fills the pipe before its reader starts. An exit in a pipeline stage stays local to that stage, and job control can resume or signal the whole process group instead of just the first process.
    • Fewer surprises when scripts combine shell features. Here-documents inside command substitutions no longer confuse the parser in cases such as unmatched quotes in the document body. Nested expansions follow Bash's quoting rules more closely, and scripts that split data on custom delimiters keep empty fields where Bash does.
    • Better support for existing tools. Gentoo ebuilds can now use local -I to inherit variables, and mise activate bash no longer trips over export -a. Everyday builtins are closer to Bash, too: as examples, command -v recognizes aliases and functions, and read handles multibyte UTF-8.

Help us close the next compatibility gap. Try a Bash script you already use, in the playground or locally. If brush behaves differently, file a compatibility report. A short, shareable example and what each shell did can help us turn your report into a regression test.


Other highlights

  • Interactive shell improvements. Syntax highlighting and default Reedline styles now adapt to light and dark terminal themes; HISTCONTROL (ignorespace, ignoredups, ignoreboth, erasedups) is honored; HISTFILE loads after startup files (and disables history when empty); login and interactive sessions retain terminal control reliably; bind -x no longer kills the shell; and experimental zsh-style precmd/preexec hooks have a cleaner contract.
  • Installer and canary builds. New install.sh for Linux/macOS with glibc/musl detection, SHA-256 verification, staged smoke tests, and optional gh attestation checks, backed by rolling and commit-pinned canary builds on ghcr.io/reubeno/brush-canary (#1375, #1408, #1409).
  • WebAssembly and play.brush.sh. Significant WASM improvements -- including in-memory pipes unlocking builtin pipelines, command substitutions, and here-documents (#1489, #1671), printf under WASI (#1567), and moving WASI CI to wasm32-wasip3 (#1447) -- made the new browser playground possible.
  • Windows and broader platform support. Prebuilt Windows x64 and ARM64 binaries are now included in GitHub Releases (#1290), Windows command lookup resolves PATHEXT for path-qualified commands (#1492), brush-shell's default Cargo features now build across every target (#1501), and BSD builds are fixed and tested in CI (#1198).
  • Embedder extensibility and dependency cleanup. Hosts can plug in custom ProcessLauncher and TaskSpawner implementations via ShellExtensions (#1508, #1670), store typed builtin state on Shell (#1544, #1545), source pre-parsed programs (#1648), and opt into kill_external_commands_on_drop (#1244). brush-core, brush-builtins, and brush-shell dropped their direct dependency on clap in favor of winnow-args (with brush-clap-adapter available for embedders), and brush-core replaced unmaintained chrono internally with jiff (#1546, #1635, #1659, #1751).
  • Performance and docs. Lower interpreter stack sizes, single-vector history storage, fewer copies/allocations in expansion and dispatch, a new architecture overview, and a revamped README.

Crate API migration guides

We don't take breaking changes lightly, and we've done our best to limit them in this release to places where they enable better programmability (such as host-pluggable process launchers, task spawners, and decoupling clap/chrono) or more compatible behavior (such as UTF-8 byte offsets, shared file descriptors, and Bash-faithful completion).

To make upgrading straightforward, this release introduces versioned crate API migration guides (#1754). They ship inside each crate package, render under docs::migrations on docs.rs with runnable doctests, and call out API changes alongside required code edits. Please do let us know how these guides work for you; they're intended to be readable and understandable, and also consumable by agents.

Crate Version MSRV Migration guide
brush-parser 0.5.0 1.88.0 0.4.0 โ†’ 0.5.0 guide ยท rustdoc
brush-core 0.6.0 1.88.0 0.5.0 โ†’ 0.6.0 guide ยท rustdoc

See the crate migration overview for general upgrade guidance and the MSRV policy for the new two-tier MSRV split (Rust 1.88 for library crates; Rust 1.95 for brush, brush-shell, and brush-interactive). (Note: direct clap dependencies were removed from brush-core, brush-builtins, and brush-shell, though clap still appears transitively via uucore under default brush-builtins features, and chrono can still appear transitively with optional brush-coreutils-builtins features.)


๐Ÿ™ Acknowledgments

Special thanks to the contributors whose sustained work shaped this release:

  • @lu-zero -- continued foundational investments across the codebase (parser byte offsets, IFS/expansion, declare/export, winnow-args migrations, builtin state, source_program)
  • @qodelicious (20 focused Bash-compat PRs across builtins, globbing, arithmetic, and the brace-expansion parser fix)
  • @Elsie19 (systematic allocation and performance improvements across the core)
  • @luantaraschi (expansion and parser compatibility fixes)
  • @hartsock (concurrent compound pipelines, kill_external_commands_on_drop)
  • @Zane-XY (pluggable TaskSpawner and WASM broken-pipe handling)

And thank you to everyone else who authored or co-authored commits in v0.5.0:

@AdeAttwood, @adil192, @alpaylan, @Blfrg, @bresilla, @cataggar, @cavanaug, @cilki, @Coolllyn, Daniel Seiler, @FengYing1314, @ferentinai, @fu5ha, @G-Rath, @HigherOrderLogic, @Its-J, @jihtsan, @mtanski, @oech3, @Osso, @pepa65, @pujitha24, @sd2k, @ShIroRRen, @Shriraj1901, @tbontb-iaq, @vivo75, and @zbl1998-sdjn.

If you contributed and aren't listed here, that's unintentional -- please let us know and we'll fix it!


Full Changelog: CHANGELOG.md ยท brush-shell-v0.4.0...brush-shell-v0.5.0

Don't miss a new brush release

NewReleases is sending notifications on new releases.