I'm trying to use GNU Parallel to run a comman mutliple times with a combination of constant and varying arguments. But for some reason the constant arguments are split on white-space even though I've quoted them when passing them to parallel
.
In this example, the constant argument 'a b'
should be passed to debug-call
as a single argument instead of two:
$ parallel debug-call 'a b' {} ::: {1..2}
[0] = '[...]/debug-call'
[1] = 'a'
[2] = 'b'
[3] = '1'
[0] = '[...]/debug-call'
[1] = 'a'
[2] = 'b'
[3] = '2'
debug-call
is a simple script which prints each argument it has been passed in argv
. Instead I would expect to see this output:
[0] = '[...]/debug-call'
[1] = 'a b'
[2] = '1'
[0] = '[...]/debug-call'
[1] = 'a b'
[2] = '2'
Is this a bug or is there a option to prevent GNU Parallel from splitting command line arguments before passing them on to the command?
parallel
with-q
...