From 0979c6009e74ea37d277d82fbeb37bbd2a3152af Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Tue, 31 May 2011 20:48:00 +0200 Subject: [PATCH] Added test for multiple {} in a composed command --- testsuite/tests-to-run/test61.sh | 3 +++ testsuite/wanted-results/test61 | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/testsuite/tests-to-run/test61.sh b/testsuite/tests-to-run/test61.sh index 79f99e41..f8884780 100644 --- a/testsuite/tests-to-run/test61.sh +++ b/testsuite/tests-to-run/test61.sh @@ -6,3 +6,6 @@ SERVER2=parallel-server2 echo '### Test --return of weirdly named file' stdout parallel --return {} -vv -S $SERVER1 echo '>'{} ::: 'aa<${#}" b' rm 'aa<${#}" b' + +echo '### Test {} multiple times in different commands' +seq 1 10| parallel -v -Xj1 echo {} \; echo {} diff --git a/testsuite/wanted-results/test61 b/testsuite/wanted-results/test61 index 8a69563c..81a2ff09 100644 --- a/testsuite/wanted-results/test61 +++ b/testsuite/wanted-results/test61 @@ -1,2 +1,6 @@ ### Test --return of weirdly named file ssh parallel-server3 PARALLEL_SEQ=$PARALLEL_SEQ\;export PARALLEL_SEQ\;PARALLEL_PID=$PARALLEL_PID\;export PARALLEL_PID\; echo\ \>aa\\\<\\\${\\\#}\\\"\\\ b;_EXIT_status=$?; rsync -rlDzR -essh parallel-server3:././aa\\\<\\\${\\\#}\\\"\\\ b ./; exit $_EXIT_status; +### Test {} multiple times in different commands +echo 1 2 3 4 5 6 7 8 9 10 ; echo 1 2 3 4 5 6 7 8 9 10 +1 2 3 4 5 6 7 8 9 10 +1 2 3 4 5 6 7 8 9 10