Rust-Based Bash-Compatible Shell brush 0.5.0 Passes Over 96% of Completion Tests and Adds Windows Builds
Version 0.5.0 of brush, a Bash-compatible shell written in Rust, passed 2,040 tests for Bash command completion scripts and improved pipeline execution. The project now distributes official Windows binaries.
brush passes 2,040 completion tests
Version 0.5.0 of the open source shell brush was released at 3:26 a.m. PST on November 26. The project says it merged more than 360 pull requests, or proposed code changes, in about six months.
brush aims to carry over familiar Bash settings and scripts while offering features such as suggestions based on command history and syntax highlighting. Version 0.4.0 improved error handling and Windows path handling.
One notable part of this release is its testing with bash-completion, a collection of Bash scripts for command-line completion. The scripts suggest command-specific options and arguments as well as filenames, providing a practical test of how well brush runs existing Bash code.
The automated tests run just before release recorded 2,040 passes, 62 failures, 19 expected failures, and 128 skips. Among the tests that ran, the pass rate reached 96.2%.
brush's own compatibility suite also grew from about 2,100 tests to more than 3,600. It runs scripts in Bash and brush and compares standard output, standard error, exit codes, and changes to the file system.
The compatibility documentation for 0.5.0 lists about 870 cases in the Bash comparison suite that are known to fail. These failures are marked in the test cases so that the suite can also detect when a fix makes one pass.
The project tests integrations with tools such as fzf, atuin, mise, nvm, oh-my-git, starship, and zoxide for each pull request. Continually testing code that people use helps catch regressions introduced while improving other features.
Bash compatibility testing in brush 0.5.0
| Test area | Test count | Results |
|---|---|---|
| Completion tests bash-completion | 2249 | 2,040 passed 62 failed 19 expected failures 128 skipped Tests run96.2% passed |
| Bash comparison | About 2,100 → Over 3,600 | Known failures About 870 |
| Tool integrations 7 outside completion | 79 | 69 passed 9 expected failures 1 skipped |
Concurrent pipelines fix a hang
A pipeline connects the output of one command to the input of the next. Earlier versions of brush could hang if the pipe buffer filled before the process on the reading end started. The write would block and the pipeline would stop making progress.
Version 0.5.0 fixes this by allowing shell functions and command groups to run concurrently within a pipeline. Running exit partway through a pipeline also confines its effect to that stage.
Job control can now resume entire process groups and send signals, which are notifications used to control processes.
The release improves parsing when command substitution contains a here-document, which supplies a multiline string as input. Quoting in nested expansions now behaves more like Bash. The read command also handles multibyte UTF-8 characters better.
Running scripts the way Bash does takes more than understanding the syntax. The shell also has to start and stop each operation at the same point and affect the same processes. That is part of what makes implementing Bash in another language difficult.
Windows and browser availability
Alongside Linux and macOS builds, the official release now includes Windows binaries for x64 and ARM64. Users can download the ZIP files and try brush without compiling the source.
brush 0.5.0 platforms and test coverage
| Platform | Official availability | Tests and features |
|---|---|---|
| Linux | Binaries | x64・ARM64(glibc) Full suite |
| macOS | Binaries | Full suite on ARM64 |
| Windows | x64・ARM64 Binaries First binaries | Preview Builds and static checks Small dedicated test suite |
| Browser | New release No installation | Same execution engine Tab completion and other differences |
The project's platform support list for 0.5.0 classifies Windows as a preview. The project runs the full suite on some Linux configurations and on ARM64 macOS, while Windows gets builds, static checks, and a small set of dedicated tests. More testing on Windows is needed before the completion pass rate can serve as a guide to how brush behaves there.
The project also launched play.brush.sh, where users can try the shell directly in a browser. Support for in-memory pipes in WebAssembly makes it possible to pipe built-in commands together and to use command substitution and here-documents.
The browser version uses the same execution engine as the installed shell. Some interactive features, such as Tab completion, behave differently, but users can try scripts without installing anything.
Bash compatibility beyond the shell
The execution engine, brush-core, can be embedded as a library in Rust applications. The update adds extension points that let host applications customize how they launch processes and run tasks.
Compatibility improvements made for the shell also carry over to software that embeds the updated engine. Testing against real-world scripts has value for more than just using brush as a daily shell.
The developers encourage users to try existing Bash scripts in brush and report differences with a small example. Run a familiar script in the new shell, and a small difference you find can become a test for the next person who tries it.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
