mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-28 23:57:54 +00:00
44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
### Test --return of weirdly named file
|
|
ssh parallel-server3 'eval `echo $SHELL | grep -E "/(t)?csh" > /dev/null && echo setenv PARALLEL_SEQ '$PARALLEL_SEQ'\; setenv PARALLEL_PID '$PARALLEL_PID' || echo 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 if remote login shell is csh
|
|
ssh csh@localhost 'eval `echo $SHELL | grep -E "/(t)?csh" > /dev/null && echo setenv PARALLEL_SEQ '$PARALLEL_SEQ'\; setenv PARALLEL_PID '$PARALLEL_PID' || echo PARALLEL_SEQ='$PARALLEL_SEQ'\;export PARALLEL_SEQ\;PARALLEL_PID='$PARALLEL_PID'\;export PARALLEL_PID` ;' echo\ \$PARALLEL_PID\ \$PARALLEL_SEQ\ a\|\ wc\ -w;
|
|
3
|
|
ssh csh@localhost 'eval `echo $SHELL | grep -E "/(t)?csh" > /dev/null && echo setenv PARALLEL_SEQ '$PARALLEL_SEQ'\; setenv PARALLEL_PID '$PARALLEL_PID' || echo PARALLEL_SEQ='$PARALLEL_SEQ'\;export PARALLEL_SEQ\;PARALLEL_PID='$PARALLEL_PID'\;export PARALLEL_PID` ;' echo\ \$PARALLEL_PID\ \$PARALLEL_SEQ\ b\|\ wc\ -w;
|
|
3
|
|
ssh csh@localhost 'eval `echo $SHELL | grep -E "/(t)?csh" > /dev/null && echo setenv PARALLEL_SEQ '$PARALLEL_SEQ'\; setenv PARALLEL_PID '$PARALLEL_PID' || echo PARALLEL_SEQ='$PARALLEL_SEQ'\;export PARALLEL_SEQ\;PARALLEL_PID='$PARALLEL_PID'\;export PARALLEL_PID` ;' echo\ \$PARALLEL_PID\ \$PARALLEL_SEQ\ c\|\ wc\ -w;
|
|
3
|
|
### 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
|
|
### Test of -X {1}-{2} with multiple input sources
|
|
a-b
|
|
a-c a-d
|
|
b-c b-d
|
|
a-d a-e a-f b-d b-e
|
|
b-f c-d c-e c-f
|
|
a-d
|
|
a-e
|
|
a-f
|
|
b-d
|
|
b-e
|
|
b-f
|
|
c-d
|
|
c-e
|
|
c-f
|
|
### Test of -X {}-{.} with multiple input sources
|
|
a-a b-b
|
|
a-a c-c a-a d-d
|
|
b-b c-c b-b d-d
|
|
a-a d-d a-a e-e a-a f-f b-b d-d b-b e-e
|
|
b-b f-f c-c d-d c-c e-e c-c f-f
|
|
a-a d-d
|
|
a-a e-e
|
|
a-a f-f
|
|
b-b d-d
|
|
b-b e-e
|
|
b-b f-f
|
|
c-c d-d
|
|
c-c e-e
|
|
c-c f-f
|