From: Andrea Maschio Date: 2007-01-29T18:40:48+09:00 Subject: Newbie Basic Command Interpreter Question in Ruby ------=_Part_123330_29546270.1170063645219 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello Folks, i'm a newbie who desires to implement a basic command interpreter written in ruby. Let's say i want to start a new Thread who listen to user input p=Thread.new{ puts "thread started" loop do a=gets.chomp exit if (a=="quit\n") puts a end } outputs "thread started" and exits What i'm i doing wrong? Why the tread doesn't continue looping but exits? Sorry for the newbie question, i'm just learning ruby. Thank you very much for answering Andrea ------=_Part_123330_29546270.1170063645219--