2011-05-31 18:04:46 +00:00
|
|
|
### Test --return of weirdly named file
|
2013-05-16 20:49:17 +00:00
|
|
|
ssh -tt -oLogLevel=quiet parallel@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` ;' tty\ \>/dev/null\ \&\&\ stty\ isig\ -onlcr\ -echo\;echo\ \>aa\\\<\\\$\\\{\\\#\\\}\\\"\\\ b;_EXIT_status=$?; mkdir -p .; rsync --rsync-path=cd\ ./.\;\ rsync -rlDzR -essh parallel@parallel-server3:aa\\\<\\\$\\\{\\\#\\\}\\\"\\\ b .; exit $_EXIT_status;
|
2011-07-17 01:03:57 +00:00
|
|
|
### Test if remote login shell is csh
|
2013-05-16 20:49:17 +00:00
|
|
|
ssh -tt -oLogLevel=quiet 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` ;' tty\ \>/dev/null\ \&\&\ stty\ isig\ -onlcr\ -echo\;echo\ \$PARALLEL_PID\ \$PARALLEL_SEQ\ a\|\ wc\ -w;
|
2011-07-17 01:03:57 +00:00
|
|
|
3
|
2013-05-16 20:49:17 +00:00
|
|
|
ssh -tt -oLogLevel=quiet 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` ;' tty\ \>/dev/null\ \&\&\ stty\ isig\ -onlcr\ -echo\;echo\ \$PARALLEL_PID\ \$PARALLEL_SEQ\ b\|\ wc\ -w;
|
2011-07-17 01:03:57 +00:00
|
|
|
3
|
2013-05-16 20:49:17 +00:00
|
|
|
ssh -tt -oLogLevel=quiet 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` ;' tty\ \>/dev/null\ \&\&\ stty\ isig\ -onlcr\ -echo\;echo\ \$PARALLEL_PID\ \$PARALLEL_SEQ\ c\|\ wc\ -w;
|
2011-07-17 01:03:57 +00:00
|
|
|
3
|
2011-05-31 18:48:00 +00:00
|
|
|
### 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
|
2011-05-31 21:12:03 +00:00
|
|
|
### 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
|
2011-09-08 08:53:26 +00:00
|
|
|
### Test of -r with --pipe - the first should give an empty line. The second should not.
|
|
|
|
1
|
|
|
|
0
|
2013-01-09 22:06:01 +00:00
|
|
|
### Test --tty
|
|
|
|
/dev/tty
|
|
|
|
/dev/tty
|
|
|
|
/dev/tty
|
|
|
|
/dev/tty
|
|
|
|
/dev/tty
|