Process substitution not allowed by Python's subprocess with shell=True?

前端 未结 2 1084
野趣味
野趣味 2020-12-12 08:02

Here is a toy example of process substitution that works fine in Bash:

$ wc -l <(pwd)
1 /proc/self/fd/11

So why does the same command gi

2条回答
  •  醉梦人生
    2020-12-12 08:55

    /bin/sh: 1: Syntax error: "(" unexpected

    You have a bashism. It is not valid according to POSIX, which is what /bin/sh implements.

提交回复
热议问题