How to pass quoted args to GNU Parallel How to pass quoted args to GNU Parallel bash bash

How to pass quoted args to GNU Parallel


zsh-4.3.12[sysadmin]% print -l {1..3} |   parallel -q echo "Quoted ' (text)"Quoted ' (text) 1Quoted ' (text) 2Quoted ' (text) 3

As described by @mortehu:

Arguments passed to commands through parallel are expanded by the shell twice: once in the invocation of parallel, and once when parallel runs your command. -q prevents the second shell expansion.


There is a whole section in the man page dedicated to quoting:

http://www.gnu.org/s/parallel/man.html#QUOTING

It even mentions the very error messages you write in your question.

If you can write it better please email your version to: parallel@gnu.org.