Masoud Ahmadi wrote in post #1087554:
> 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}`
>

You are also using backticks in the last line above, and backticks are 
not the same as double quotes.

The gets() method always returns a string, and interpolating a sting 
into a string does nothing--you can just use the original string.

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