I just have a problem with a ruby script
I just want to change the directory where the following command would be executed
I try this code but it didn’t work
puts "Nom du dossier svn?"
@dossier = gets.chomp
system("cd #{@dossier}")
(it’s in french because i’m french ^^)
Someone can help me ?
Thank you
Use the
Dir.chdirfunction.When you do:
This in effect starts a shell, that shell changes to the given directory and promptly exits. It has no effect whatsoever on the calling process (your ruby script).