Fixed bug #43746: --transfer and --return of multiple inputs {1} and {2}

This commit is contained in:
Ole Tange 2015-03-07 23:22:10 +01:00
parent db3bc0c4eb
commit d0fb3a103f
2 changed files with 13 additions and 4 deletions

View file

@ -36,7 +36,7 @@ echo '### Test tmux works on different shells'
ssh tcsh@lo "$PARTMUX" 'true ::: 1 2 3 4; echo $status';
ssh tcsh@lo "$PARTMUX" 'false ::: 1 2 3 4; echo $status'
echo '### TODO This fails - word too long'
echo '### This fails - word too long'
export PARTMUX='parallel -Scsh@lo,tcsh@lo,parallel@lo,zsh@lo --tmux ';
stdout ssh csh@lo "$PARTMUX" 'true ::: 1 2 3 4; echo $status' | grep -v 'See output';
stdout ssh csh@lo "$PARTMUX" 'false ::: 1 2 3 4; echo $status' | grep -v 'See output'
@ -52,6 +52,10 @@ echo '### These blocked due to length'
parallel -Szsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
parallel -Scsh@lo --tmux echo ::: 111111111111111111111111111111111111111111111111111111111
echo '### bug #43746: --transfer and --return of multiple inputs {1} and {2}'
cd /tmp; echo 1 > file1; echo 2 > file2;
parallel -Sparallel@lo --trc {1}.a --trc {2}.b 'echo A {1} > {1}.a; echo B {2} > {2}.b' ::: file1 ::: file2;
cat file1.a file2.b;
rm /tmp/file1 /tmp/file2 /tmp/file1.a /tmp/file2.b
EOF

View file

@ -31,8 +31,8 @@ echo '### Test tmux works on different shells'
4
0
4
echo '### TODO This fails - word too long'
### TODO This fails - word too long
echo '### This fails - word too long'
### This fails - word too long
export PARTMUX='parallel -Scsh@lo,tcsh@lo,parallel@lo,zsh@lo --tmux '; stdout ssh csh@lo "$PARTMUX" 'true ::: 1 2 3 4; echo $status' | grep -v 'See output'; stdout ssh csh@lo "$PARTMUX" 'false ::: 1 2 3 4; echo $status' | grep -v 'See output'
Word too long.
Word too long.
@ -56,3 +56,8 @@ echo '### These blocked due to length'
parallel -Stcsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
parallel -Szsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
parallel -Scsh@lo --tmux echo ::: 111111111111111111111111111111111111111111111111111111111
echo '### bug #43746: --transfer and --return of multiple inputs {1} and {2}'
### bug #43746: --transfer and --return of multiple inputs {1} and {2}
cd /tmp; echo 1 > file1; echo 2 > file2; parallel -Sparallel@lo --trc {1}.a --trc {2}.b 'echo A {1} > {1}.a; echo B {2} > {2}.b' ::: file1 ::: file2; cat file1.a file2.b; rm /tmp/file1 /tmp/file2 /tmp/file1.a /tmp/file2.b
A file1
B file2