Will anyone be able to point out what I am doing wrong.
The code does not understand that I have said Q

    loop {
      puts("give me the command to execute or press Q to quit")
      op=gets
      if "#{op}" == "Q"
        then
        Kernel.exit(0)
      else
        value = `#{op}`
        puts "#{value}"
      end
    }

-- 
Posted via http://www.ruby-forum.com/.