In my program I\'m executing given command and getting result (log, and exit status). Also my program have to support shell specific commands (i.e. commands which contains shell
Option -c expects a command in form of string. In shell of course it is working, because there is no difference between spawning ls and redirecting output to wc and launching ls | wc in separate shell.