How to execute and capture stdout of an external command in Ruby using system () without escaping the shell?

I can name the system ("echo", "'"), and this will not be interpreted by the shell. I expect the result: '' on stdout. But I need to fix this result. % x is not an option, since I do not want to start the shell, but I execute the command directly (and I do not want to execute shell escaping).

+5
source share
1 answer
+3
source

All Articles