Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Re: repeat count?
- X-seq: zsh-users 28663
- From: zeurkous@xxxxxxxxxxxxxxx
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, dominik.vogt@xxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: RE: Re: repeat count?
- Date: Thu, 19 Jan 2023 14:57:08 +0000 (UTC)
- Archived-at: <https://zsh.org/users/28663>
- In-reply-to: <CAN=4vMoojvizTs3tH4jy1A2oxtSW2-QQgUpO_BKm68-xJiNCnQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <Y8WR4X/amuVc25nF@localhost> <CAN=4vMoojvizTs3tH4jy1A2oxtSW2-QQgUpO_BKm68-xJiNCnQ@mail.gmail.com>
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