mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-23 13:17:54 +00:00
84 lines
975 B
Plaintext
84 lines
975 B
Plaintext
|
### Test xapply --max-replace-args
|
||
|
2 1 0
|
||
|
5 4 3
|
||
|
7 6
|
||
|
### Test -N
|
||
|
1 2 3
|
||
|
4 5
|
||
|
### Test -N with 0
|
||
|
0 1 2
|
||
|
3 4 5
|
||
|
6 7
|
||
|
### Test :::: on nonexistent
|
||
|
parallel: Cannot open nonexistent
|
||
|
### Test :::: two files
|
||
|
1 5
|
||
|
2 6
|
||
|
3 7
|
||
|
4 8
|
||
|
5 9
|
||
|
6 10
|
||
|
7 11
|
||
|
8 12
|
||
|
9 13
|
||
|
10 14
|
||
|
15
|
||
|
### Test -d, ::::
|
||
|
a1 5b
|
||
|
a2 6b
|
||
|
a3 7b
|
||
|
a
|
||
|
8
|
||
|
b
|
||
|
### Test -d, :::: one file too much
|
||
|
a1 5b
|
||
|
a2 6b
|
||
|
a3 7b
|
||
|
a
|
||
|
8
|
||
|
b
|
||
|
### Bug: did not quote
|
||
|
> b
|
||
|
### Quote test triplet 1
|
||
|
echo a
|
||
|
a
|
||
|
echo b
|
||
|
b
|
||
|
echo a
|
||
|
a
|
||
|
echo b
|
||
|
b
|
||
|
echo a
|
||
|
a
|
||
|
echo b
|
||
|
b
|
||
|
### Quote test triplet 2
|
||
|
echo echo\ a
|
||
|
echo a
|
||
|
echo echo\ b
|
||
|
echo b
|
||
|
echo echo\ a
|
||
|
echo a
|
||
|
echo echo\ b
|
||
|
echo b
|
||
|
echo echo\ a
|
||
|
echo a
|
||
|
echo echo\ b
|
||
|
echo b
|
||
|
### Quoting if there is a command and 2 arg files
|
||
|
echo echo\ a echo\ b
|
||
|
echo a echo b
|
||
|
### Quoting if there is a command and 2 arg files of uneven length
|
||
|
echo echo\ a echo\ b
|
||
|
echo a echo b
|
||
|
echo a1
|
||
|
a1
|
||
|
### Quoting if there is no command and 2 arg files
|
||
|
echo a echo b
|
||
|
a echo b
|
||
|
### Quoting if there is no command and 2 arg files of uneven length
|
||
|
echo a echo b
|
||
|
a echo b
|
||
|
echo a1
|
||
|
a1
|