Added test for multiple {} in a composed command

This commit is contained in:
Ole Tange 2011-05-31 20:48:00 +02:00
parent 8d8335728a
commit 0979c6009e
2 changed files with 7 additions and 0 deletions

View file

@ -6,3 +6,6 @@ SERVER2=parallel-server2
echo '### Test --return of weirdly named file' echo '### Test --return of weirdly named file'
stdout parallel --return {} -vv -S $SERVER1 echo '>'{} ::: 'aa<${#}" b' stdout parallel --return {} -vv -S $SERVER1 echo '>'{} ::: 'aa<${#}" b'
rm 'aa<${#}" b' rm 'aa<${#}" b'
echo '### Test {} multiple times in different commands'
seq 1 10| parallel -v -Xj1 echo {} \; echo {}

View file

@ -1,2 +1,6 @@
### Test --return of weirdly named file ### 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; 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