parallel icon indicating copy to clipboard operation
parallel copied to clipboard

--quote for arguments?

Open mqudsi opened this issue 8 years ago • 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.

mqudsi avatar Oct 14 '17 03:10 mqudsi