It is clearly a bug that GNU Parallel does not respect --basefile when
doing --nonall/--onall. And the idea in your fix seems reasonable.

Unless I find it breaks anything expect it in next release.

/Ole

On Wed, Aug 17, 2011 at 5:32 PM, Ben. B. <[email protected]> wrote:
> Would it be possible to update parallel so that one can pass a --basefile
> when doing --nonall with --sshlogin?
>
> I hacked it to work by doing the following:
>
>   if($::opt_nonall or $::opt_onall) {
>       ...
>       setup_basefile() if @::opt_basefile;
>       ...
>       my $exit = min(undef_as_zero($Global::exitstatus),254);
>       cleanup_basefile() if @::opt_basefile;
>       wait_and_exit($exit)
>   }
>
> Not sure if this is acceptable/desirable but in my limited testing it did
> work. Thanks!

Reply via email to