parallel
[Top][All Lists]
Advanced

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

Difference between single and double quotes for parallel?


From: Maciej Pilichowski
Subject: Difference between single and double quotes for parallel?
Date: Wed, 15 Dec 2010 11:25:39 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

Hi,

Ole, thank you for fixing the issue with white space, I will check it as soon it will be released (other issues -- during weekend), but now I have another problem -- related to it.

In order to preserve the space within some argument, normally you would enclose it in double quotes.

However, when you use composed commands for parallel you have to put those in some quotes -- if your command has already double quotes, you cannot enclose the entire line with them. But if you use single quotes, the commands will be passed as-is, and I only guess parallel handles parsing such argument.

Ok, I tried single quotes and some of my variables were not resolved, let's say:

FN=something
'.... "${FN}" .... '

Since in documentation to parallel, single and double quotes are just used, without going into details, I still have difficulties grasping how I _should_ use quotes for parallel.

Ok, it is already too long post -- in short, could I ask for little explanation how to use single and double quotes for parallel + composed commands + arguments with (possible) whitespaces?
  Thank you in advance.

Kind regards,



reply via email to

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