2010/9/21 Ole Tange
<address@hidden>
>> > This command has an error:
>> > ls NEWS | parallel grep "'"
>> >
>> > sh: -c: line 0: unexpected EOF while looking for matching `''
>> > sh: -c: line 1: syntax error: unexpected end of file
Different shells have different errors. On my system the above gives:
sh: Syntax error: Unterminated quoted string
I got the same with bash version 4.1.5
With bash version 4.0.35 I get:
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
> But '-q' does not solve the problem. Backslash quoting does.
That is odd: -q works for me:
Me too. "parallel -q" works well with Bash version 4.0.35.
Not the 4.1.5 version.
$ ls NEWS | parallel -q grep "'"
sem 'sleep 2; echo foo'; sem 'sleep 1; echo bar'; sem --wait
sem -j2 'sleep 2; echo foo'; sem -j2 'sleep 1; echo bar'; sem --wait
cat tab_sep_table | parallel --colsep '\t' echo col1 {1} col2 {2}
* --sshloginfile '..' means use ~/.parallel/sshloginfile
$ ls NEWS | parallel -q -tp grep "'"
grep \' NEWS ?...
/hans