parallel
[Top][All Lists]
Advanced

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

Re: Parallel is having trouble handling quotes for unicode characters


From: Ole Tange
Subject: Re: Parallel is having trouble handling quotes for unicode characters
Date: Sat, 27 May 2017 18:59:23 +0200

On Fri, May 26, 2017 at 4:44 AM, Glen Huang <heyhgl@gmail.com> wrote:
> Thanks for the quick reply. Didn't realize {} is already quotes.
>
> But if the solution is to not quote {}, how do I pass "${start} {}" as a
> single argument to subshell?

You are going to say 'Doh, ofcourse' now.

> For example,
>
> parallel name=\"foo {}\"';' echo \"'$name'\" ::: 你好 世界
>
> would garble the text,

You simply move the {} outside:

parallel name=\"foo \"{}';' echo \"'$name'\" ::: 你好 世界

You still need the space to be quoted.

> And I did get \?\?\?\?\?\? back, as can be seen from this screenshot. I use
> the terminal app on macOS.

What I meant was: You get two of them. Not just one.


/Ole



reply via email to

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