parallel
[Top][All Lists]
Advanced

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

Re: Vote: Should $PARALLEL_PID {#} count from 0 or 1


From: Hans Schou
Subject: Re: Vote: Should $PARALLEL_PID {#} count from 0 or 1
Date: Thu, 14 Apr 2011 10:00:44 +0200

2011/4/14 Ole Tange <tange@gnu.org>:
> I have implemented {#} as an alias for  $PARALLEL_PID in the current
> Git version. See http://savannah.gnu.org/bugs/?33005
>
> It currently counts from 1 just like $PARALLEL_PID.
>
> Dear users: Would you prefer it counts from 0 or from 1? Please elaborate why.

The 'init' PID in Linux/UNIX start at 1.

First number in 'seq 10' is 1.

It is easier to deal with 1 in a bash script. In C 0 is more natural.

I vote for 1.

/hans



reply via email to

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