Calling shell command from ruby with proper argument escaping Calling shell command from ruby with proper argument escaping shell shell

Calling shell command from ruby with proper argument escaping


If you do

system "echo", params[:message]

Then the second argument, will be sent as an argument, it will not be executed.