从命令行parallel echo {} ::: A B C
执行的命令返回正确的结果,而在 bash 脚本中调用时返回错误:
这是脚本:
#script.bash
#!/usr/bin/env bash
parallel echo {} ::: A B C
这是输出:
bash script.bash
/bin/bash: {}: command not found
/bin/bash: ::: command not found
/bin/bash: A: command not found
/bin/bash: B: command not found
/bin/bash: C: command not found
知道为什么以及如何在 bash 脚本中正确调用 GNU 并行吗?