From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24123 invoked from network); 19 Jan 2023 14:59:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 19 Jan 2023 14:59:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674140388; b=n/nufZWqY9EHEC8zuCt0RsYAcXyZJ0Y8NpJDKBm/61Mh6YBsaSgdpghzDqk25+7LHoOJqaMMcn dvwpX7wougrxFdxH7Zu++On52XyhEVaYvg1h7hfvRWBh0kae8IfMWCIcB5sb/zHHtIf66jut0k iyRu3wR5yWBKnbQfeSrw82496h8m4cRDxpz0n045+4Oubko4alm2W44B98TKO8WQSMdPmMV4Pb dXl1aLMV9npWJ35vsjstqTPsUOjK7x43w8MQw+SXOJRJfha0KGDH1Cc0MoSSJZ713JFL0cXu47 x7QeRbQX9m9rM2UVTRsaB8aQXzlQF53E7R/S8OYuTlkxWQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (maila2.tigertech.net) smtp.remote-ip=208.80.4.152; dkim=pass header.d=blaatscaahp.org header.s=2.tigertech header.a=rsa-sha256; dmarc=pass header.from=blaatscaahp.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1674140388; bh=JI7I0uYJohtDD0PJ2ad0nVffizhTTJIM0XtWe57IIEg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:References:In-Reply-To:Subject:To:From:Date:Message-ID: DKIM-Signature:DKIM-Signature; b=MPNLsvgbFpnIvX1En6DzqGt7ir7f3vZShHgppypsDa7wJNCRL7uu0BbzRFbtHymmsys9vKRbx1 I0cFPDHJJHouhTUvpPe7IZBjQrtdWyPQSGH/J+KJDMnhQkieodEExDTU6aBExrlWLiAglLmhRW L21sKz8sy7G/zJZFpMtyzCx3QbPEzJz8O2iGYWNZEKQn3yX8ipBrzedovq27e0nKeNOqID2NJP GUwa1Gu8UmYNsZPMHTmTxJEPy9KCkGGREIV3fEH4iaana+V78QIpkn40tUGuLXb5NDA47kON/s WNW59rdZnLz45gJI3lx/bIUX2EDl1zWlcfxGmzgBfvj8Bw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:References:In-Reply-To:Subject:To: From:Date:Message-ID:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Z0+19G0bDfcwPfQWRFtAbjGzRutEMSL2Bh++s6qRxPI=; b=CwxvF+w96Oh2NoRb3EpSuMVco2 FoZFsCe6fecB0KvSQu9Nv4xRLVpUzjbbFiGGftaNLJxMFSyJuJXF/GjySukRzb5FYqd/tHevg7axL xP8kHvO87nuOYQZfz5hVf+aUoav6Eueob/KxGNh0ZtSWOheTFu1M8iS4llghowmu+DVUsAe7DCCUs 3QupAIMdmwe86cU7s5kUcOylMZFctNYVJoKPDnHI2j4qJYPex3YNxxRGaFFMmN585vsaTromsdi5K NCDPo1J6x48zTesxIkBLAbAwEQbMLcjhCgEdrRYpwJvMl2qTTODzHqwIBkbMxqawbHgGgUBq3TQ51 vmr8F9jQ==; Received: by zero.zsh.org with local id 1pIWOJ-000NCk-NT; Thu, 19 Jan 2023 14:59:47 +0000 Authentication-Results: zsh.org; iprev=pass (maila2.tigertech.net) smtp.remote-ip=208.80.4.152; dkim=pass header.d=blaatscaahp.org header.s=2.tigertech header.a=rsa-sha256; dmarc=pass header.from=blaatscaahp.org; arc=none Received: from maila2.tigertech.net ([208.80.4.152]:48687) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pIWMx-000MUm-85; Thu, 19 Jan 2023 14:58:24 +0000 Received: from localhost (localhost [127.0.0.1]) by maila2.tigertech.net (Postfix) with ESMTP id 4NyQjm5vtRz6GqQR for ; Thu, 19 Jan 2023 06:58:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blaatscaahp.org; s=2.tigertech; t=1674140300; bh=Z0+19G0bDfcwPfQWRFtAbjGzRutEMSL2Bh++s6qRxPI=; h=Date:From:To:Subject:In-Reply-To:References:From; b=CeWthQngonZI7vZZPN6wfDSh0uf4V19uvB4voW4Y0ITuIoCI4gmmfWqjuUYM/CNmo w9SrwsMrhtqqQPbJBjqBf/w8/7q6PiX8wWYEApyzDtIzDaH38X2iZKIxMhTvDKRTYR Rc12WZ0FQt+l/oO8+d1mTh23xA7SANaNDYMy7dGg= X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at a2.tigertech.net Received: from localhost (cst-prg-89-91.cust.vodafone.cz [46.135.89.91]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by maila2.tigertech.net (Postfix) with ESMTPSA id 4NyQjl5QJyz6GrCY for ; Thu, 19 Jan 2023 06:58:19 -0800 (PST) Received: by thinkcrap.localdomain (Postfix, from userid 1001) id E0B2935546A; Thu, 19 Jan 2023 14:58:16 +0000 (UTC) Message-ID: Date: Thu, 19 Jan 2023 14:57:08 +0000 (UTC) From: zeurkous@blaatscaahp.org To: Roman Perepelitsa , dominik.vogt@gmx.de, Zsh Users Subject: RE: Re: repeat count? In-Reply-To: References: User-Agent: 822_dng. X-Seq: 28663 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Mon, 16 Jan 2023 20:20:13 +0100, Roman Perepelitsa wrote: > On Mon, Jan 16, 2023 at 7:06 PM Dominik Vogt 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!