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 27867 invoked from network); 16 Jan 2023 18:31:41 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Jan 2023 18:31:41 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1673893901; b=ieGUv6Wh//PdR8cJiTC860UlTMdRsOwheaB0bdfPD5OfZoIYcAGSwXH1hAWFUa1rZ/JtGhkqDd w8qABkzZzCnCRH5p6Pfun0P70Na6EpTK9cyyIcWijXOdaqUppUc5FcfOy1wi7iPhX7UCjI8FlN qZnvVthsdzJSzL/e8MCE7FsqfgSUOoOjAIXYXuS4bwYWt51TNA1O27chomwjpFHcREdZGgTVij 6BcA5sIvZ9W9ezF37ghZd0lb745x/egIEixDUMOnkcmKtDjvKsaePHVwz4KFWjae9+oV2F/XfU s1BSK3nvOt2/Qce51jsEMnJ11RCsCU9TM88jnzT5oZoAVQ==; 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=1673893901; bh=n7TyvskrcU8aHOF7Pq0iclqv/qRP/UyfYUyHABnLLUM=; 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=QZUwGtl3ffJGD9xxIXf6m0HVQZtvRbexu3xOCAhdB0+XpeHO3yDn/yk35Jo9Ar62b4XLuY/yJy c8M0MzNxBPhA0axuBHX2mSNUqyLLgYYjiWNh9m3Qs6X3IFQXVxOOh+lRQqY1szlT4qovMXDsGZ AgPVOHrah9Drb5UJ9JpyrEVuzDFKRpVifV4XNVBTTZcLyBKdjCSx/qOKs8GbuFGTJDZjAkWV1O tkLTIa0xPTmGlecBc9ZV2E43ZVbe0yef2irLlJ+HqFWrUGyqeDr/rKMGCDFOZhiPQR/IGDww1r uDc/JjP35cVq2IN434J2oKtEty5l2m6e2z/sk048KxN+rg==; 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=9god6OxBR/kJEiqMQZRbOMI+Bz+yFhRefIQVg6eDNpQ=; b=n4vii6UMXk/tuv2H0rZWtjhK5X E1XFwuqSx/8KktbTkB1hvNg9b0Ov5X9PTL+KNQ92dRt3uuLpNdLufBqeAmW8/Damt6c2YR4LNXoh0 5lvgBoDTOIwAQiowCoTUDrFjl5lcWCxXWGwcrOIAlbtg9/CIZbDiZI0oDuiSDvThAX8ucn+1R8/ih NidKfsqRn3zIgv6N0x7SBKrcMPktfzGHIimMaQYJE50y5KfKRYEoL2y3pOxN08J6RrQfuTb+IDjX1 e3DkbrrbF8/BbJBOJSv/TXE1f6pvov/HwsGzeyjy01V6qXVgNUJeFIMZiOOpakEzV290lNS4+v/+U hAVFbaoQ==; Received: by zero.zsh.org with local id 1pHUGi-000KVR-Uj; Mon, 16 Jan 2023 18:31:40 +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]:41581) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pHUFX-000Jpv-Le; Mon, 16 Jan 2023 18:30:29 +0000 Received: from localhost (localhost [127.0.0.1]) by maila2.tigertech.net (Postfix) with ESMTP id 4NwgYr4J6Yz6G99W for ; Mon, 16 Jan 2023 10:30:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blaatscaahp.org; s=2.tigertech; t=1673893824; bh=9god6OxBR/kJEiqMQZRbOMI+Bz+yFhRefIQVg6eDNpQ=; h=Date:From:To:Subject:In-Reply-To:References:From; b=S4yhHGWTJsJSMkE1S+cbG6yxZe4BwEKjr63wcSroHqM2/sRE1GBbfxexuvDLciJEM VeHmz1qKJoE1QlaBPFb+Jf9/d4dan4xHG4IYlJgDVbTT1CuoKKpoZwBFukv/lqwqdE w7ikDkIc/bqf/987WxTJBRnOXiXpV9nku9xODPWI= X-Quarantine-ID: <23XG1VgT01SW> X-Virus-Scanned: Debian amavisd-new at a2.tigertech.net Received: from localhost (cst-prg-93-118.cust.vodafone.cz [46.135.93.118]) (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 4NwgYq1X9Cz6G7QN for ; Mon, 16 Jan 2023 10:30:22 -0800 (PST) Received: by thinkcrap.localdomain (Postfix, from userid 1001) id 7584535546A; Mon, 16 Jan 2023 18:30:19 +0000 (UTC) Message-ID: Date: Mon, 16 Jan 2023 18:26:17 +0000 (UTC) From: zeurkous@blaatscaahp.org To: dominik.vogt@gmx.de, Zsh Users Subject: RE: repeat count? In-Reply-To: References: User-Agent: 822_dng. X-Seq: 28639 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 19:05:21 +0100, 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? > > repeat 10; do > echo "pass number ???" > done > Dunno, but one alternative is-- for a in {0..9}; do echo "pass number ${a}"; done; > Ciao > > Dominik ^_^ ^_^ HTH, --zeurkous. > > =2D- > > Dominik Vogt > -- Friggin' Machines!