Scoopfeeds — Intelligent news, curated.
computer-science

Rubish: A Unix shell written in pure Ruby

Hacker News · May 23, 2026, 6:32 AM

Key takeaways

  • Shell syntax is parsed and compiled to Ruby code, then executed by the Ruby VM.
  • Fully Bash-compatible Rubish supports all the features of bash, and the shell syntax is fully compatible.
  • Rubish is not just a shell implemented in Ruby, but a shell that deeply integrates Ruby.

Shell syntax is parsed and compiled to Ruby code, then executed by the Ruby VM.

Fully Bash-compatible Rubish supports all the features of bash, and the shell syntax is fully compatible. You can run your existing bash scripts without modification. If you found any bash script that doesn't work in rubish, we consider it a bug, so please report it!

Rubish is not just a shell implemented in Ruby, but a shell that deeply integrates Ruby. You can seamlessly mix shell commands and Ruby code, and even use Ruby's powerful features like blocks, iterators, and libraries in your shell scripts.

Article preview — originally published by Hacker News. Full story at the source.
Read full story on Hacker News → More top stories
Aggregated and edited by the Scoop newsroom. We surface news from Hacker News alongside other reporting so you can compare coverage in one place. Editorial policy · Corrections · About Scoop