How do I run multiple commands with the --quote/-q option?
For example, this quotes the ;:
$ parallel --dry-run -q command1 {1} \; command2 ::: "With a space" "Another space" "Yet more spaces" "WithoutASpace"
command1 'With a space' ';' command2
command1 'Another space' ';' command2
command1 'Yet more spaces' ';' command2
¿How do I unquote it so that it runs:
command1 'With a space' ; command2
command1 'Another space' ; command2
command1 'Yet more spaces' ; command2
I know my MWE here probably doesn't need -q, but when I have more complicated commands with arguments that need quotes, I ran into the issue that single quotes Parallel put were "leaking" through into the text passed to the command.
You have already given the solution: remove -q, and addressed the problem, that this raises:
https://www.gnu.org/software/parallel/man.html#quoting says:
You can still use GNU Parallel to generate the arguments.
So:
IMHO it often improves readability, too.