This works for me:
FOO="My brother 12\" records"
export FOO
parallel echo 'FOO is "$FOO" Process id $$ Argument' ::: 1 2 3
To make it work for remote connections (via ssh), you need to specify a variable to extend the shell. parallel --shellquotecan help you with this:
parallel -S server export FOO=$(parallel --shellquote ::: "$FOO")\;echo 'FOO is "$FOO" Process id $$ Argument' ::: 1 2 3
If this does not solve your problem, consider an example that does not work.
- Change -
See --envintroduced in version 20121022
- Change -
Look env_parallelintroduced in 20160322.
source
share