Fixed bug #45575: -m and multiple hosts repeats first args.

This commit is contained in:
Ole Tange 2015-07-19 03:07:48 +02:00
parent cfc8501693
commit 2ca714a58e
2 changed files with 4 additions and 0 deletions

View file

@ -4777,6 +4777,7 @@ sub compute_number_of_processes {
} }
# Cleanup: Unget the command_lines or the @args # Cleanup: Unget the command_lines or the @args
$Global::JobQueue->{'commandlinequeue'}->{'arg_queue'}->unget(@args); $Global::JobQueue->{'commandlinequeue'}->{'arg_queue'}->unget(@args);
@args = undef;
$Global::JobQueue->unget(@jobs); $Global::JobQueue->unget(@jobs);
@jobs = undef; @jobs = undef;
} }

View file

@ -61,6 +61,9 @@ echo '### bug #44371: --trc with csh complains'
echo '### bug #44143: csh and nice' echo '### bug #44143: csh and nice'
parallel --nice 1 -S csh@lo setenv B {}\; echo '$B' ::: OK parallel --nice 1 -S csh@lo setenv B {}\; echo '$B' ::: OK
echo '### bug #45575: -m and multiple hosts repeats first args'
seq 1 3 | parallel -X -S 2/lo,2/: -k echo
EOF EOF
echo echo