On Tue, May 6, 2014 at 4:57 PM, Rhys Ulerich <rhys.uler...@gmail.com> wrote:
>> PARALLEL_JOBSLOT = PARALLEL_SEQ mod Number_of_jobslots.
>> ...
>> What would be a reasonable shorthand for $PARALLEL_JOBSLOT?
>
> Playing off the modulo operation: {%} ?

I like that. Can we envision situation where this will cause problems?
E.g. !! would be a terrible choice, and in Bash you can use '%2' to
refer to the suspended job number 2.

How about other shells? csh? zsh? fish? tcsh?

Another idea would be {##}.

> Playing off the jobslots being "locations" in some sense: {@}?
> Sequence number {#} is at {@}.

I like this less: Bash uses the @ for expanding all arrays in a list: ${name[@]}


/Ole

Reply via email to