Skip to content
It's pronounced like rubbish.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


It's pronounced like rubbish

What is it?

Rubysh is a little DSL that scans your systems PATH and exposes everything there as a funtion. For example:

-ls(" -a")

would be equivalent to

system("ls -a")

If you use a + instead of a minus the commend is run as a sub process and the stdout is returned to ruby as a string.

output = +ls
p output #would be the contents of your current directory

You can also pipe commands together like in a bash script


Lastly you can also pipe arbitrary strings into a commands stdin like so

"input".grep("-ro [nu]")

yes I know this is a crime. thank you for your patronage.

You can’t perform that action at this time.