bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports trouble with space after filename substitut


From: Rob Sargent
Subject: Re: GNU Parallel Bug Reports trouble with space after filename substitution
Date: Tue, 06 Jan 2015 14:53:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

On 01/06/2015 02:36 PM, Ole Tange wrote:
On Tue, Jan 6, 2015 at 10:19 PM, Ole Tange <address@hidden> wrote:

So when I ask you to minimize the command I expect you to give me
something like:

  parallel echo {1} / {2} ::: a.b ::: b.c
Is it this that is surprising you:

  parallel echo A{}B C{//}D E{1}F G{1//}H ::: dir2/file.ext ::: dir1/v2

giving the output:

  Adir2/file.ext dir1/v2B Cdir2 dir1D Edir2/file.extF Gdir2H

Here there is a space after Cdir2 because there is a space after
Adir2/file.ext. {//} will rarely make sense if you have multiple input
sources. {1//} will, however.

If it was the above, then you could have given me this simple example
and saved time:

  parallel echo c{//}d ::: DIR/FILE.EXT ::: V2

And asked: "I get 'cDIR .d', I had expected 'cDIRd'. Why do I get the
additional space and .?"

This example would have been much easier for me to see through.


/Ole
Thank you.  I think I understand.  I had not noticed {n//}.


reply via email to

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