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: Ole Tange
Subject: Re: Quoting error: unexpected EOF while looking for matching `''
Date: Tue, 21 Sep 2010 16:54:05 +0200

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

>> Search the man page for:
>>
>> sh: -c: line 0: syntax error near unexpected token
>
> Yes, it was there. (ReadTheFineManual)
>
> But '-q' does not solve the problem. Backslash quoting does.

That is odd: -q works for me:

ls NEWS | parallel -q grep "'"

What does the above do on your system?

> I tried debugging with '-t' and clearly sees what is wrong. Maybe a good
> idea to use -t if something goes wrong.
>
> Is there an option which dont run the job - just show what will be done?

-p gives you the chance to say 'n'. Maybe the manual for -t should
refer to -p, too.


/Ole



reply via email to

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