bug-parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quoting error: unexpected EOF while looking for matching `''


From: Hans Schou
Subject: Re: Quoting error: unexpected EOF while looking for matching `''
Date: Tue, 21 Sep 2010 17:34:10 +0200

2010/9/21 Ole Tange <address@hidden>
On Tue, Sep 21, 2010 at 3:54 PM, Hans Schou <address@hidden> wrote:
> 2010/9/21 Ole Tange <address@hidden>
>> On Tue, Sep 21, 2010 at 1:55 PM, Hans Schou <address@hidden> wrote:

>> > 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]