Both run -- cmd1 running the whole command line, and cmd2 just its first list element (no "-ltr").
cmd1 = 'ls -ltr'
cmd2 = ['ls', '-ltr']
print delegator.run(cmd1).out
total 148
-rw-r--r-- 1 chris 1414874935 128653 Aug 22 14:12 dump.txt
-rw-r--r-- 1 chris 1414874935 224 Aug 22 14:32 9655bd19-f3ab-4db0-b3bd-c9fa7f895b78
-rw-r--r-- 1 chris 1414874935 224 Aug 22 14:32 2c9165d7-5a14-4c09-b23f-7c21d2923466
...
I would except cmd2 to work and cmd1 to fail.
Both run -- cmd1 running the whole command line, and cmd2 just its first list element (no "-ltr").
delegator v0.10.0 in Python 2.7.15