From: Phlip Date: 2008-07-21T01:04:45+09:00 Subject: Re: system admin script > Ruby has methods of making complicated console calls such as system, > sh, and the backtick (`). Yes! > For example: > system "cd foo" > system "rm bar" No! Firstly, the cd can't influence the rm, because they ran in different contexts. Nextly, only use system when you can't use a raw Ruby call. They are much more typesafe: Dir.chdir 'foo' do Pathname.new('bar').unlink end -- Phlip