Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: repeat count?
- X-seq: zsh-users 28644
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: dominik.vogt@xxxxxx, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: repeat count?
- Date: Mon, 16 Jan 2023 20:20:13 +0100
- Archived-at: <https://zsh.org/users/28644>
- In-reply-to: <Y8WR4X/amuVc25nF@localhost>
- List-id: <zsh-users.zsh.org>
- References: <Y8WR4X/amuVc25nF@localhost>
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