Rubish: A Unix shell written in pure Ruby
Rubish is a Unix shell implemented in pure Ruby that allows users to run existing Bash scripts without modification. It deeply integrates Ruby, enabling users to mix shell commands with Ruby code and utilize Ruby's features in their scripts. The shell is fully compatible with Bash and offers unique features like Ruby conditions and method chaining for enhanced functionality.
- ▪Rubish supports all features of Bash and allows running existing Bash scripts without any changes.
- ▪Users can seamlessly integrate Ruby code and commands in their shell scripts.
- ▪Rubish offers unique features such as Ruby conditions, method chaining, and inline Ruby evaluation.
Opening excerpt (first ~120 words) tap to expand
Rubish A UNIX shell written in pure Ruby. Shell syntax is parsed and compiled to Ruby code, then executed by the Ruby VM. Concept 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! Deep Ruby integration 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.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.