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.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31131 invoked from network); 17 Sep 2022 01:52:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Sep 2022 01:52:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1663379574; b=bmCb00YJUHkK+rhQnqaZUe/R6ownrd2otZlTmwPwnIBrS6nQgDDD0593lAcKLDVD2qDDU2PgEv jl4YQSNODdvDD3cXb0kZbZT4iqL+73HqHhTwIsygocynygM3hb2+RmcDNo009/ggH9bhXzraZ2 6swPEuFX27EWOJ3TOEbWFpwDQ58YMMaNXxKxoH3i8yCzxCjZ5Lr680Nj7inRgSLmGDhwymPfnU nW02dvZEPq+7pCdD8PBqZD2G0vXcsxae/ymv5PXZUUVIw7T+J0U+A2SAVrqDtNQ4QkrTAI0y97 NvSNm7w0RlfwbDkmsFYka/946ShM2eEb6O1yzPfSxKBfEw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1663379574; bh=yENctVT0cNEWw0DsUbhR3uTRzGhAgAxYlbd30ZiCU/M=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=E46PWSyzABE3X7ENWn8HqEXP34TX7EA0V5hCDyHTKacKeyw9mpGUfelnbEZTCZwZFwMZ7kdYsB KyPXKpFpcAOaOawNc+odtx0oY+DuEwsFRcPH5DfupAUwr/hv5X4XR4yrX7E3lhCdCd0UrkPVIq pxWxkJlSm8d4Mdaf2FpKA/FyUYt7GYA1L17yuKguKfYUsDbKdonddF6V/Dv/CCKm+CKTR4rZuc uwPYjZcnEL85/0aeF+UWpzuteV0O4PoJCrv8tGptXoqCrcYhxgtQHAwmyPtigBrIVp4LIratGq u7gm/4HfhuVFJPAkn96HyYYkcIH74rmnvGPj4dsal9VBZA==; 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:Content-transfer-encoding: Content-type:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=59k8nFG+T3ZA8zgxK584eJOfNMMcWUsFCnehwqsW9WU=; b=Ztt8DEI/kutFgSgvSrY2WQCP9R RdTD4yWsETyXJDcgvzZ84WHJORjRQMZ+26s1ONIvLBcHJxRUcwELsgQ7e/HNde+wVKbB9PWqrxVva yzE2jz3z/swqjpsStfEpWo5YUgoN/nr9ja4yps3k0ymkeb9IvrpGMKYC0b5l/h6CGAXSyQY2dUmuP Bj01vaKvEhVjw6Nvkf3C6VByW/Io9gnbpNH+VMMo1G8kdsaGQ5Eo6T4qqHubTrq2aqDR4oXaqWwtR GvY8W2t91EYWCq/n1h0rq5sBbIkaaVOLu0+pijFr8GeWvF1VSrKuTEf9XfJxPVwu2j10rRZulgu2d OeGazq/w==; Received: from authenticated user by zero.zsh.org with local id 1oZN0n-000HZB-5l; Sat, 17 Sep 2022 01:52:53 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:41635) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1oZMzM-000Gsc-6G; Sat, 17 Sep 2022 01:51:24 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RIB00K38YH9BW90@mta01.eastlink.ca> for zsh-users@zsh.org; Fri, 16 Sep 2022 22:51:22 -0300 (ADT) Received: from [192.168.0.3] ([24.207.18.108]) by Eastlink with ESMTP id ZMzKoCbjzFC8dZMzKofpNp; Fri, 16 Sep 2022 22:51:22 -0300 X-Authority-Analysis: v=2.4 cv=HaHR8gI8 c=1 sm=1 tr=0 ts=6325281a a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=gir0-LH0AAAA:8 a=yC4ih5ZBBN6G_JqTsDsA:9 a=QEXdDO2ut3YA:10 a=aLewGyoHDmJ4ULJHWpSz:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvuddgheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrfegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.18.108 Message-id: <02ea8068-ee8b-ecde-3b00-60c7796fbb63@eastlink.ca> Date: Fri, 16 Sep 2022 18:51:21 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: local but persistent integer? Content-language: en-US To: zsh-users@zsh.org References: <22a10f61-5f82-9797-4bc9-9082f9371dc7@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28103 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 2022-09-16 14:41, Bart Schaefer wrote: > On Fri, Sep 16, 2022 at 12:43 PM Ray Andrews wrote: >> On 2022-09-16 10:44, Bart Schaefer wrote: >> > In any case it's not reliable to expect locally-declared variables to > behave this way, and I'd still recommend using -g or -gH instead of > -x. Done.  All runs as before and I'll take it on authority that it's better code.