GNU Parallel:bash缺少参数?

3
当我尝试使用Gnu Parallel的信号量时,任何命令都会导致以下结果:
/bin/bash: -c: option requires an argument

例如:
parallel --semaphore --verbose sleep 1000
/bin/bash -c 
/bin/bash: -c: option requires an argument

为什么没有任何东西传递到bash?

我使用的是Ubuntu 12.04.5 LTS(GNU / Linux 3.2.0-84-generic x86_64),GNU bash,版本4.2.25(1)-release(x86_64-pc-linux-gnu),GNU parallel 20121122。


刚刚发现使用选项--gnu似乎可以解决这个问题,但我不知道为什么... - Kyle
你是否遇到了https://dev59.com/A2Qn5IYBdhLWcg3w9K73的问题? - Ole Tange
@OleTange 类似的问题,但是在我的情况下命令根本没有被执行。但解决方案是相同的。我会将其标记为重复,但留下这里可能对那些尝试搜索症状的人有帮助。 - Kyle
1个回答

0
当我将我的使用版本添加到问题中时,我在版本说明中遇到了这个。如果不使用“--quiet”标志运行并行程序,则可能很好打印!
koman@erasmus> parallel --version
WARNING: YOU ARE USING --tollef. IF THINGS ARE ACTING WEIRD USE --gnu.
GNU parallel 20121122
Copyright (C) 2007,2008,2009,2010,2011,2012 Ole Tange and Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.

Web site: http://www.gnu.org/software/parallel

When using GNU Parallel for a publication please cite:

O. Tange (2011): GNU Parallel - The Command-Line Power Tool, 
;login: The USENIX Magazine, February 2011:42-47.

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接