mmstick/parallel

--quote for arguments?

mqudsi opened this issue · 0 comments

I originally understood --quote to escape the {...} substitutions, not the command. Maybe it should escape both?

~> echo "hello 'world'" | parallel --quote --dry-run file -ib
parallel: reading inputs from standard input
file -ib hello 'world'

To obtain the following output:

file -b hello\ \'world\'

In fact, I'd argue that the default behavior is that input converted to arguments should be escaped before substitution.