From: Tim Hunter Date: 2007-10-24T07:01:03+09:00 Subject: Re: bash to ruby Fernando Cacciola wrote: > Hi people, > > I'm not a ruby developer just yet, but I've been reading a couple of > in-depth references and I already like it... a lot. > > Today I got, once again as usual, annoyed by having to get into cygwin > *just* to run build-related bash scripts from within windows. But I must > be developing some ruby cells in my blood already since I thought: that's > it... I'm rewritting them in ruby! > > So, is there any guideline on how to port bash scripts to ruby? > You might find it useful to look at Ruby's un.rb library. It implements a lot of common *ix commands (cd, rm, cp, mkdir, etc.) using FileUtils. It might give you some ideas. -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]