bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports GNU Parallel 20180722 ('Crimson Hexagon') r


From: Ole Tange
Subject: Re: GNU Parallel Bug Reports GNU Parallel 20180722 ('Crimson Hexagon') released [alpha]
Date: Wed, 25 Jul 2018 05:59:36 +0200

On Mon, Jul 23, 2018 at 8:56 PM, Cook, Malcolm <address@hidden> wrote:

> Can you possibly provide examples of how changing the quoting engine might 
> change how parallel is invoked?
>
> Or is the intention that there is no change?

You should not have to change how you invoke GNU Parallel.

The change is most visible when using non-ASCII chars in:

* --joblog:

$ echo ærøål | parallel --jl - echo
Seq     Host    Starttime       JobRuntime      Send    Receive
Exitval Signal  Command
ærøål
1       :       1532489828.537       0.000      0       9       0
 0       echo 'ærøål'

* --verbose

$ echo ærøål | parallel --verbose echo
echo 'ærøål'
ærøål

* --dryrun

$ echo ærøål | parallel --dr echo
echo 'ærøål'

* -vv

$ echo ærøål | parallel -vv -Slocalhost echo
ssh localhost -- exec 'perl -e
'"'"'$ENV{"PARALLEL_PID"}="5803";$ENV{"PARALLEL_SEQ"}="1";$bashfunc =
"";@ARGV="echo 
'"'"'"'"'"'"'"'"'ærøål'"'"'"'"'"'"'"'"'";$shell="$ENV{SHELL}";$tmpdir="/tmp";$nice=0;do{$ENV{PARALLEL_TMP}=$tmpdir."/par".join"",map{(0..9,"a".."z","A".."Z")[rand(62)]}(1..5);}while(-e$ENV{PARALLEL_TMP});$SIG{CHLD}=sub{$done=1;};$pid=fork;unless($pid){eval{setpgrp};eval{setpriority(0,0,$nice)};exec$shell,"-c",($bashfunc."@ARGV");die"exec:$!\n";}do{$s=$s<1?0.001+$s*1.03:$s;select(undef,undef,undef,$s);}until($done||getppid==1);kill(SIGHUP,-${pid})unless$done;wait;exit($?&127?128+($?&127):1+$?>>8)'"'";
ærøål

Notice how few \ you see and how many '"'"'"'"' suddenly appear.

The reason why the version is considered alpha quality is because a
lot of internal "plumbing" has depended on \-quoting, and I am not
sure if I have gotten all that code upgraded. So there may be
situations that are broken.

You are encouraged to use GNU Parallel as normal, and report if some
things are broken in the newest version.


/Ole



reply via email to

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