Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: Re: repeat count?



On Mon, 16 Jan 2023 20:20:13 +0100, Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
> On Mon, Jan 16, 2023 at 7:06 PM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
>>
>> Is it possible to get the pass number of a repeat loop from within
>> the loop, or is it necessary to use a hand written counter?
>
> I just realized that none of the replies actually answered your
> question. There is no special parameter set by the shell that contains
> the iteration counter in repeat loops. I'd love to have that myself.

Then the question is: how would that work w/ nested repeat loops...?
        --zeurkous.

> Roman.

-- 
Friggin' Machines!




Messages sorted by: Reverse Date, Date, Thread, Author