I found a bug, that I reduced to the following example:
$ printf 'foo\0bar' | parallel -0 -S 1/examplehost --filter-hosts echo {}
parallel: This should not happen. You have found a bug.
Please contact <[email protected]> and include:
* The version number: 20161222
* The bugid: ncpus missing: examplehost
* The command line being run
* The files being read (put the files on a webserver if they are big)
If you get the error on smaller/fewer files, please include those instead.
The issue goes away when you remove the -0 switch (and pass in arguments
separated by newlines):
$ printf 'foo\nbar' | parallel -S 1/examplehost --filter-hosts echo {}
foo
bar
In my current usecase, there won't be newlines in the files so I can live with
not using -0.
Martijn Pieters