parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-0 and --filter-hosts don't mix?


From: Martijn Pieters
Subject: -0 and --filter-hosts don't mix?
Date: Sun, 3 Jul 2022 15:27:56 +0100

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 <parallel@gnu.org> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]