2014-07-15 00:40:38 +00:00
|
|
|
|
echo '### Test exit val - true'; echo true | parallel; echo $?
|
2013-12-19 01:19:19 +00:00
|
|
|
|
### Test exit val - true
|
|
|
|
|
0
|
2014-07-15 00:40:38 +00:00
|
|
|
|
echo '**'
|
2013-12-19 01:19:19 +00:00
|
|
|
|
**
|
2014-07-15 00:40:38 +00:00
|
|
|
|
echo '### Test exit val - false'; echo false | parallel; echo $?
|
2013-12-19 01:19:19 +00:00
|
|
|
|
### Test exit val - false
|
|
|
|
|
1
|
2014-07-15 00:40:38 +00:00
|
|
|
|
echo '**'
|
2013-12-19 01:19:19 +00:00
|
|
|
|
**
|
2014-09-23 18:14:57 +00:00
|
|
|
|
echo '### Test bug #43284: {%} and {#} with --xapply'; parallel --xapply 'echo {1} {#} {%} {2}' ::: a ::: b; parallel -N2 'echo {%}' ::: a b
|
|
|
|
|
### Test bug #43284: {%} and {#} with --xapply
|
|
|
|
|
a 1 1 b
|
|
|
|
|
1
|
|
|
|
|
echo '**'
|
|
|
|
|
**
|
2014-10-14 20:56:03 +00:00
|
|
|
|
echo '### Test bug #43376: {%} and {#} with --pipe'
|
|
|
|
|
### Test bug #43376: {%} and {#} with --pipe
|
2014-12-09 05:23:37 +00:00
|
|
|
|
echo foo | parallel -q --pipe -k echo {#}
|
2014-10-14 20:56:03 +00:00
|
|
|
|
1
|
2014-12-09 05:23:37 +00:00
|
|
|
|
echo foo | parallel --pipe -k echo {%}
|
2014-10-14 20:56:03 +00:00
|
|
|
|
1
|
2014-12-09 05:23:37 +00:00
|
|
|
|
echo foo | parallel -q --pipe -k echo {%}
|
2014-10-14 20:56:03 +00:00
|
|
|
|
1
|
2014-12-09 05:23:37 +00:00
|
|
|
|
echo foo | parallel --pipe -k echo {#}
|
2014-10-14 20:56:03 +00:00
|
|
|
|
1
|
|
|
|
|
echo '**'
|
|
|
|
|
**
|
2014-12-12 12:30:54 +00:00
|
|
|
|
echo '### {= and =} in different groups separated by space'
|
|
|
|
|
### {= and =} in different groups separated by space
|
2014-12-09 05:23:37 +00:00
|
|
|
|
parallel echo {= s/a/b/ =} ::: a
|
|
|
|
|
b
|
|
|
|
|
parallel echo {= s/a/b/=} ::: a
|
|
|
|
|
b
|
|
|
|
|
parallel echo {= s/a/b/=}{= s/a/b/=} ::: a
|
|
|
|
|
bb
|
|
|
|
|
parallel echo {= s/a/b/=}{=s/a/b/=} ::: a
|
|
|
|
|
bb
|
|
|
|
|
parallel echo {= s/a/b/=}{= {= s/a/b/=} ::: a
|
|
|
|
|
b{= b
|
|
|
|
|
parallel echo {= s/a/b/=}{={=s/a/b/=} ::: a
|
|
|
|
|
b{=b
|
|
|
|
|
parallel echo {= s/a/b/ =} {={==} ::: a
|
|
|
|
|
b {=a
|
|
|
|
|
parallel echo {={= =} ::: a
|
|
|
|
|
{=a
|
|
|
|
|
parallel echo {= {= =} ::: a
|
|
|
|
|
{= a
|
|
|
|
|
parallel echo {= {= =} =} ::: a
|
|
|
|
|
{= a =}
|
2014-12-12 12:30:54 +00:00
|
|
|
|
echo '**'
|
|
|
|
|
**
|
|
|
|
|
echo '### {} as part of the command'
|
|
|
|
|
### {} as part of the command
|
|
|
|
|
echo p /bin/ls | parallel l{= s/p/s/ =}
|
|
|
|
|
/bin/ls
|
|
|
|
|
echo /bin/ls-p | parallel --colsep '-' l{=2 s/p/s/ =} {1}
|
|
|
|
|
/bin/ls
|
|
|
|
|
echo s /bin/ls | parallel l{}
|
|
|
|
|
/bin/ls
|
|
|
|
|
echo /bin/ls | parallel ls {}
|
|
|
|
|
/bin/ls
|
|
|
|
|
echo ls /bin/ls | parallel {}
|
|
|
|
|
/bin/ls
|
|
|
|
|
echo ls /bin/ls | parallel
|
|
|
|
|
/bin/ls
|
2014-12-14 08:44:32 +00:00
|
|
|
|
echo '**'
|
|
|
|
|
**
|
|
|
|
|
echo '### bug #43817: Some JP char cause problems in positional replacement strings'
|
|
|
|
|
### bug #43817: Some JP char cause problems in positional replacement strings
|
|
|
|
|
parallel -k echo ::: '<27><<3C>>' '<27><1 $_=2<>>' 'ワ'
|
|
|
|
|
<EFBFBD><<3C>>
|
|
|
|
|
<EFBFBD><1 $_=2<>>
|
|
|
|
|
ワ
|
|
|
|
|
parallel -k echo {1} ::: '<27><<3C>>' '<27><1 $_=2<>>' 'ワ'
|
|
|
|
|
<EFBFBD><<3C>>
|
|
|
|
|
<EFBFBD><1 $_=2<>>
|
|
|
|
|
ワ
|
|
|
|
|
parallel -Xj1 echo ::: '<27><<3C>>' '<27><1 $_=2<>>' 'ワ'
|
|
|
|
|
<EFBFBD><<3C>> <20><1 $_=2<>> ワ
|
|
|
|
|
parallel -Xj1 echo {1} ::: '<27><<3C>>' '<27><1 $_=2<>>' 'ワ'
|
|
|
|
|
<EFBFBD><<3C>>
|