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

Re: repeat count?



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.

Roman.




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