ruSH is now rs
Posted by rue, Sun Sep 10 01:45:00 UTC 2006
Someone asked about ruSH on ruby-talk at a time when I had been pondering about making an interim announcement myself. I am working on a Ruby shell again though I deleted all previous work (except from the repository, of course) and have renamed the project rs.
The approach is slightly different this time. The 0.1 release which is hopefully not too far off will feature most of the basic functionality but in pure Ruby syntax. 0.2, eventually, would add a parser for more traditional-looking shell syntax. Currently I am pretty close to 0.1 but I am revisiting the piping (or ObjectStreaming) a bit to add some simplicity :)
Contrived syntax difference example:1 2 3 4 5 6 7 8 |
# 0.1 Normal ls('-la').| .map {|i| i.reverse} >> '~/revls.txt' # 0.1 Strict (this should be optional for certain environs) ls('-la').pipe_to.map {|i| i.reverse}.append_to '~/revls.txt'.to_fso # 0.2 ls -la | .map {|i| i.reverse} >> ~/revls.txt |
Funky stuff. Would be interested in helping test when it’s ready.