[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Parallel Bug Reports trouble with space after filename substitut
From: |
Ole Tange |
Subject: |
Re: GNU Parallel Bug Reports trouble with space after filename substitution |
Date: |
Tue, 6 Jan 2015 22:36:44 +0100 |
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