From: Sam Kong Date: 2007-06-22T02:55:12+09:00 Subject: How can I implement cd (change dir) command in Ruby? Hi, This question is rather out of curiosity than practical. Let's say I want to make a script which is equivalent to cd command in Linux. Is it possible? Usage: ~$ ruby mycd.rb /temp /temp$ <- current dir has been changed after the script ran. system("cd #{ARGV[0]}") didn't work. Thanks. Sam