On a unix command line I can do:
paste <(echo A) <(echo B)
However, when I try to do this:
import subprocess
subprocess.call('paste <(echo A) <(echo B)', shell = True)
I get this error:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `paste <(echo A) <(echo B)'
Is it not possible to do shell input redirection with the subprocess module?
/bin/shas your shell which doesn't do that. You need to try to force it to use/bin/bash.