mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-12-27 15:17:54 +00:00
146 lines
1.6 KiB
Plaintext
146 lines
1.6 KiB
Plaintext
### Test ::::
|
|
### Change --arg-file-sep
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
15
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
15
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
15
|
|
1 5
|
|
2 6
|
|
3 7
|
|
4 8
|
|
5 9
|
|
6 10
|
|
7 11
|
|
8 12
|
|
9 13
|
|
10 14
|
|
15
|
|
### 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 input file `nonexistent': No such file or directory
|
|
### 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
|
|
### Test multiple -a
|
|
echo b a
|
|
b a
|
|
echo b a
|
|
b a
|
|
### Multiple -a: An unused file
|
|
echo b a
|
|
b a
|
|
echo b a
|
|
b a
|
|
### Multiple -a: nonexistent
|
|
parallel: Cannot open input file `nonexist': No such file or directory
|
|
parallel: Cannot open input file `nonexist': No such file or directory
|
|
### Test {#.}
|
|
echo c-ext b-withext a-noext
|
|
c-ext b-withext a-noext
|