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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24475 invoked from network); 26 Aug 2023 21:14:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2023 21:14:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1693084443; b=keuP4TAa8uHSDmClw58HVuVyT5aD/pvU313IRvQhlKHFH4ghL16kDmXcDgqfeJm526zHGFy9b1 EOphZR7jwWZKnwNYRkBnI/57QqI+/GuwAMsMbbwZ63CVge1ZBXxRCze7MgJP9r0niaWSfT8h4E CC8LxgfxBFMarbKABBAYxLsrDZaFivqQlZrl7PKCvotLmiLe3IAciunB1o3KrTsUDPXSTh7BKF eQrxSZ0XSedXXyhMPSouzq6hG2jZ1vru3haaVSc2KwtB9mlSD418t698S/F8OTeG7OGCrncKDo 4ZrqkmB0E4f9qJB4dY2YxKOhWnlk3v0rDLaZNQ6rLaIcVA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f178.google.com) smtp.remote-ip=209.85.208.178; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1693084443; bh=1JsLueTkYG+GlYI2pq0wsF8yveWQ7L510f7uVpomTPo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=jwlAztMuPRY58yLmtfzalOdeMTkdE+niwW+TK5MNWWJ0h1OqOfk3cpC8XfatvcQBX3xfI4DNSb jRqQSmdQU0e2lK0s+3O6C8MIY4Qqt5qoqZleGmmtCl/qWVNRnywj4EJ1XXWskXytHNrq5CKNb6 Pj/r4/sPkJPEt/SyKQ//IJ3HdTlZ+aARK2BbP4pgQnTfTrgjHWC/RYJS39E2eBEYNHrMiqT4ov OL+5Lsp65Md4tYcCmNm+1PV+H3vknQKGrfNjHIrGhGxiUwub+W3qIq35dO52HBUTttgwGfNqYW SvJDDADqWh6MBESm8IqnpQB48/1DlOax+RDbbpvf+xFAcA==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=6P5vOo8XK0SHG7SKK8ZK3ryqt5rtBHRAPElEMrrb+lE=; b=Pl3NYkJq3O3NKlJXmcFYYUdqCk rW5V7jw/NHnMAIEhFL+qRqSR9hd/XGChUSjp2wo9MdUzO/8+vHqif0xlKFfbDBTAsEpU32EfbajI9 5wVw10YqXV7BthEaQwBJunNRClzbJBRr4qGcnx97/YB0aHPm9+rznKcTNYkB6wvFOtVlWEhjRgS72 +8GHV31Aim5P6BJGx9RWAOkqlAPHupr+/7VI+QCE/QmFgtNfD569BLun84HUV0ctcOUCzHgePwZX4 cDlswSzKDV0J/RVhlok2fNIJMnVJo4gdNKsI8mRWgMUM+Fx9OCeAGxUnoQn2unN3rokqGig6vEYeb +r68KSQQ==; Received: by zero.zsh.org with local id 1qa0bb-000Lpm-EN; Sat, 26 Aug 2023 21:14:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f178.google.com) smtp.remote-ip=209.85.208.178; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f178.google.com ([209.85.208.178]:50471) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qa0b4-000L63-ON; Sat, 26 Aug 2023 21:13:31 +0000 Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2bcbfb3705dso30747801fa.1 for ; Sat, 26 Aug 2023 14:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693084410; x=1693689210; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6P5vOo8XK0SHG7SKK8ZK3ryqt5rtBHRAPElEMrrb+lE=; b=ETiTy+oOaz1gw2RS18CuThQPV7NPbk9BXgGW9oX3YTUxpRRGVlEfYuuZWjGYOK45Up PKeEUy8JdaZ9kZgU/9dllVCV9sdh1EogZJQ8PKOf6wFiH1hgjPhiPK1QeDKsJlD9F4HL N9hGZMQD/ibWWHRtVTLrUapg7Xg9ELVpwf7i+Qvn6rR7+bQxSWTK4rbxWH9CnFGk/A0h 35VrQUbY3N7XneZ+dx8qpAzPcXsxpiYo4WSusa2Vl69m5d0OKtCf2ZWMxmovxurLfxNK aBjbQ5TaSoZ8PMc4rLie8uORXcWOZbgk1wcqoBKLFe0xWv/Cvl17Y91+XHxlMkTq6F5Z u+fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693084410; x=1693689210; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6P5vOo8XK0SHG7SKK8ZK3ryqt5rtBHRAPElEMrrb+lE=; b=hp8gSMKSh5Tt5h588lUJXgdrWT3bYmFE7CRa6RqUA6PR/iZ4OpjJmoeYEwBTe39Jkn wQEp+SloqEBbddZ3aU3nxfOKOUJRaUamfwtdWgBGbMYEu9C8/S1gEYazNaPsz4VEpfCt 9I/0kzmGAOj3BJtzhwaDCZkyggHpV5+ts/mzZvIcKsiyY8bXzZ5itSDf0ntU1vs8HrlI iiNEBZxvixm/orPYp33IfiZACGHJ7eFOuoemhjdnl8Zq6r11Za+ZES+hHWUrtros7KaV Utox+2HdV/RlOaKBq+6wjXeXFxblfOuYtfAzS7e/uuhKfTf0FplBOScHGT9ERsHp/nnP r4/w== X-Gm-Message-State: AOJu0YwCTU8Z3iCECua9J57CLf+PkwZNhDzCEtUyTvWXHRsHKA6ikWxZ TV4A+KV1VT4i7EZ6HjpvwLl4k+3VB2PAYXM6Za0= X-Google-Smtp-Source: AGHT+IFsH+invseVqFjn4vzJvNGww80Ur4yFdsiOpq1AWfykSCuJ/NwMDH3WjdjL/3/gxvBh7KKKWSiVUbMsnCu0gk4= X-Received: by 2002:a2e:9e07:0:b0:2b6:e283:32cb with SMTP id e7-20020a2e9e07000000b002b6e28332cbmr14243538ljk.23.1693084409825; Sat, 26 Aug 2023 14:13:29 -0700 (PDT) MIME-Version: 1.0 References: <522ad88e-adb2-74a7-103b-62af0f3e7b4e@eastlink.ca> In-Reply-To: From: Roman Perepelitsa Date: Sat, 26 Aug 2023 23:13:18 +0200 Message-ID: Subject: Re: How to have function local variable but must behave just a simple one To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 29209 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 Sat, Aug 26, 2023 at 11:11=E2=80=AFPM Ray Andrews wrote: > > On 2023-08-26 13:58, Roman Perepelitsa wrote: > > > > Indeed, given that in zsh there are no function-scoped parameters that > > outlive an invocation of the function, Budi will have to use a global > > parameter and take necessary precautions to ensure the name of the > > parameter does not clash with other globals. > > > > Roman. > > I'm puzzled as to what the problem really is from a practical point of > view. You aren't missing anything. Roman.