Reputation: 175
I can call system("echo", "''"), and this won't be interpreted by a shell. I'll have expected result: '' on stdout. But I need to capture this output. %x is not an option, since I don't want to run shell, but execute command directly (and I don't want to do shell escaping).
Upvotes: 5
Views: 4568