If I run echo a; echo b in bash the result will be that both commands are run. However if I use subprocess then the first command is run, printing out the whole
echo a; echo b
>>> command = "echo a; echo b" >>> shlex.split(command); ['echo', 'a; echo', 'b']
so, the problem is shlex module do not handle ";"