[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using {#} removes argument
From: |
Ole Tange |
Subject: |
Re: Using {#} removes argument |
Date: |
Sun, 10 Jul 2011 16:48:17 +0200 |
Changeset [f69a6d5] updates the man page to make it more clear that no
replacement string means {} is appended.
/Ole
On Fri, Jul 8, 2011 at 11:13 PM, Jay Hacker <jayqhacker@gmail.com> wrote:
> $ parallel echo ::: a b c
> a
> b
> c
>
> $ parallel echo {#} ::: a b c
> 1
> 2
> 3
>
> I'm not sure this is a problem (I prefer it this way), but it should
> probably be documented. It's the normal behavior for all of the other
> {} substitutions, but {#} is kind of different: it doesn't have
> anything to do with the input. This makes it perhaps a bit unexpected
> that it takes away the input.
>
> Actually the docs don't explicitly say that using {} disables the
> normal append-input-as-args behavior; this might be good to mention.
> Also that all of the {...} substitutions disable input-append, not
> just {}.
>
>