Story Details

  • Brush (Bo(u)rn(e) RUsty SHell) a POSIX and Bash-Compatible Shell in Rust

    Posted: 2025-05-06 18:47:49

    Brush is a new shell written in Rust, aiming for full POSIX compatibility and improved Bash compatibility. It leverages Rust's performance and safety features to create a potentially faster and more robust alternative to existing shells. While still in early development, Brush already supports many common shell features, including pipelines, globbing, and redirections. The project aims to eventually provide a drop-in replacement for Bash, offering a modern shell experience with improved performance and security.

    Summary of Comments ( 79 )
    https://news.ycombinator.com/item?id=43908368

    HN commenters generally express excitement about Brush, praising its Rust implementation for potential performance and safety improvements over Bash. Several discuss the challenges of full Bash compatibility, particularly regarding corner cases and the complexities of parsing. Some suggest focusing on a smaller, cleaner subset of Bash functionality rather than striving for complete parity. Others raise concerns about potential performance overhead from Rust, especially regarding system calls, and question whether the benefits outweigh the costs. A few users mention looking forward to trying Brush, while others highlight similar projects like Ion and Nushell as alternative Rust-based shells. The maintainability of a complex project like a shell written in Rust is also discussed, with some expressing concerns about the long-term feasibility.