The calendar is gone.
Click here to view posts


Rash
I am no master of bash. I know even less commands in the windows shell. What I do know is ruby. So Rash is born. Bring my favorite shell commands to IRB. Now this is not a full Ruby Shell. There are a few projects out there doing this. This is just a port of some useful unix commands in to Ruby. I would love to support things like pipes. Prag Dave as a cool example using fibers to create pipes.
I have a few goals.
1) To be OS independent(as well as Ruby is) 1.5) Be pure ruby (1.8,1.9)
2) Blocks!
4) Be as close to the original command as possible
3) Grow it as I need it
require "bash.rb" #=> true
include Rash #=> Object
pwd #=> "C:/Users/sbeckeriv/private/ruby"
cd ".." #=> "C:/Users/sbeckeriv/private"
ls(nil,"TC") {|dirs| dirs.join(" | ")} #=> "TC/BGI | TC/BIN | TC/CLASSLIB | TC/DOC | TC/EXAMPLES | TC/FILELIST.DOC | TC/INCLUDE | TC/LIB | TC/README | TC/README.COM"
sudo{rm "TC/README"}
Doesn't look like much now and that is because its not much. It does make windows slightly more enjoyable for me. I can now also create other commands like remove_svn(true).