mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
Fixed bug #43746: --transfer and --return of multiple inputs {1} and {2}
This commit is contained in:
parent
db3bc0c4eb
commit
d0fb3a103f
|
@ -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" 'true ::: 1 2 3 4; echo $status';
|
||||||
ssh tcsh@lo "$PARTMUX" 'false ::: 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 ';
|
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" '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'
|
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 -Szsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
|
||||||
parallel -Scsh@lo --tmux echo ::: 111111111111111111111111111111111111111111111111111111111
|
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
|
EOF
|
||||||
|
|
|
@ -31,8 +31,8 @@ echo '### Test tmux works on different shells'
|
||||||
4
|
4
|
||||||
0
|
0
|
||||||
4
|
4
|
||||||
echo '### TODO This fails - word too long'
|
echo '### This fails - word too long'
|
||||||
### TODO 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'
|
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.
|
||||||
Word too long.
|
Word too long.
|
||||||
|
@ -56,3 +56,8 @@ echo '### These blocked due to length'
|
||||||
parallel -Stcsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
|
parallel -Stcsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
|
||||||
parallel -Szsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
|
parallel -Szsh@lo --tmux echo ::: \\\\\\\"\\\\\\\"\\\;\@
|
||||||
parallel -Scsh@lo --tmux echo ::: 111111111111111111111111111111111111111111111111111111111
|
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
|
||||||
|
|
Loading…
Reference in a new issue