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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15857 invoked from network); 10 Dec 2022 20:38:44 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Dec 2022 20:38:44 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1670704724; b=e1l7MW15zmeU6G0JpDKENc6WWfmIMjisbRjg8chiV9+rKB+ZiBaAqsUz1l0BUKIigzugrOlqqq wlAsCPaL36qEQ+WcIEMCm4R9WWfU8PwhF45GOe6SjYveqADQ/j9dQBble7tPxpvcJz4/qUwKDL 93TGaxhIDFcmmOOndQhzuFidPvHg+W7H7YeK+VMb98VrwULh6X3Qfrsf3cLJt+QqCLyXh8/B+p Iqx7VEg7+zVbXCw/87LBYxlmpgQqzWqPsBN7nOWBotuawTcUP8SIilA8akZL7nHES5WZgAkhXg 4PAR8U6m8ZVnlyztrUkxzjGTtr6CYJBIZj+MNnx3aINbew==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f49.google.com) smtp.remote-ip=209.85.208.49; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1670704724; bh=gWZU0w4bJl0I/mSYlv3I0AUXnO1xSYo9rrWiV2caYko=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=aQCfAZpyB0owj2XBCV/USr37NGSYoOVL12bdqtxo1udu8/siYwnsqJVtcs4JhN/INusU0PfTdo C0KAIcMlO5ULDI+GLesuJkE7PE7CXScpjOokq8Z1JZBPlE5X0hVbDK6fceaSuayYQ1jBayDYxN tZHhGb/P2Ta+WzMQ3//ZvDOvUe4E6WTu6A2PRJnwZBhxjb0IqLktkq6omSZRA+oq8w0FrygJFK u5rR2OmBOl/q5N07VsqvoGaOUtaAy4w93P50ZFhfSS3KtIUnQA2VEEsqVnDHyOl0fOfVwissw7 AcIWdyv3UjqQXOR3T4m2/d/zmIOR93Mc/7IagvVitzxw9g==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=gWZU0w4bJl0I/mSYlv3I0AUXnO1xSYo9rrWiV2caYko=; b=EQDvrt2DQOefOFrv7dz67OINfO NhFbg5qT+xm8hDPc9Rx2Ztn2jBqk3R1tFuEz+6AqFxVuLyD+twDSfmlEt1rXFLwpshLmxpS+Jg6Fp sAoP5oZh7Ud20WlcaICTVVO82KW4YY/bUgFqbqNevY6v284PusfiJkv6/DR0jTjShX6eWKqRiQA5v OI6BaM4gScPBOS660GpSq7Tm5AfeI8Tcb4focQHGX+uXPoEjMhbFP22oKwx9C2HUe/T+vdc5mfQ8R MzsaMx8Sv5vj5Ap+dxuHo8EpXNK8w0mp88KZByU3hZiqqvS5Bv1jAQQNqEnVYp5DRR1pFzWh8T0a9 Ix/nww0g==; Received: by zero.zsh.org with local id 1p46cN-000GZ3-Ry; Sat, 10 Dec 2022 20:38:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f49.google.com) smtp.remote-ip=209.85.208.49; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f49.google.com ([209.85.208.49]:38401) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1p46c8-000GGT-3b; Sat, 10 Dec 2022 20:38:29 +0000 Received: by mail-ed1-f49.google.com with SMTP id c66so7682133edf.5 for ; Sat, 10 Dec 2022 12:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gWZU0w4bJl0I/mSYlv3I0AUXnO1xSYo9rrWiV2caYko=; b=rg/FS42oiNuwBrWeiQ8ZQ/JPPMDeyZ0IT9XK/EYcm4vG8S1oDjooILOuKMvcSXir82 KVpx12o00AvxlV0dhtDIqfu20ua5JlIRvSmokq7246QR9f2/mnJ3YMsMr11t0iO+EUr1 c3oIcJE5kmvNgzz+bMh+JYzD7SKOU1+tLg6mV2u10UGT/z2uxZXBlOD7XhASBUUFQL7+ 00fnaq1z6fBrIYpf/V2vMx+vFofJJM588/+kH2ztAmzVQC38NSAhPvhSzu5sVjA8xMQ0 gkCQtS/H7c1rjCNKI/Y0VxGph+qhrO7bdLVJIe1+hBJK6iBtbsZzUbXZCsb1oCq5CpOw 0CAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=gWZU0w4bJl0I/mSYlv3I0AUXnO1xSYo9rrWiV2caYko=; b=5d3zFbYnFYFI5LmvOpkuGdooFiK7aaZnL7xe7Co7aPYdLpc9B1ZaUqdXEc65b4kVT5 v2AjwbnPgSXkOuPcVrqz889pymFbVTI6Gri3ENwZtJ3iVqJ0jL6TSpqepv85AFSnWiUG LvPCGgCgT/bVtD4eTkXg4YwMUzhzkGDK9vA8eRh3cJdkCxt9PmNlqiDESqUQFY+yXIuq L1LylvDpWCFhhJdim1BattYhaSb6Hd2aXjiFHrrfJk68/5gkSGyqaxd772GNLk7SX/JF MksyHIFJSGdXiQxzzNl5HMM8k3hYwwvYrPTYZRgpFXnQxzgS0+3yicvq7MJsS+VtiY8l 91kQ== X-Gm-Message-State: ANoB5plZpcc5lWLs8d6+hOllR03e+IV4yZLCK4JMIfJvg1nZgGTKg15J w54kIUgraVWV82sixTP7SGzaMjQpehHmAMguEwC86Q== X-Google-Smtp-Source: AA0mqf7BPtILN4zl63w4XMLN3eerjphGmkxsevxcT5g8YwqoPcFHjinu+zuqM/eFf3oQ5S+MR7o/DcMPI5MYVZ1kaxs= X-Received: by 2002:a05:6402:24a1:b0:463:e963:5149 with SMTP id q33-20020a05640224a100b00463e9635149mr84731917eda.219.1670704707540; Sat, 10 Dec 2022 12:38:27 -0800 (PST) MIME-Version: 1.0 References: <9e3026aa-39a1-dd50-4d29-a64724d4eaaf@irit.fr> <20221208082103.zg44mrv77jrizsaj@chazelas.org> <20221208100215.k2qcqdqgjlzwbdh7@chazelas.org> In-Reply-To: From: Bart Schaefer Date: Sat, 10 Dec 2022 12:38:16 -0800 Message-ID: Subject: Re: Private variables not private enough? (Was: Get cursor position (Was: [bug report] prompt can erase messages written on the terminal by background processes)) To: Philippe Altherr Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 51180 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sat, Dec 10, 2022 at 9:36 AM Bart Schaefer wrote: > > Despite the apparent mnemonic, the only effect of [typeset] -g is > to skip the current scope before selecting the enclosing dynamic > scope. To clarify, the chosen dynamic scope is the closest one in which the parameter name already exists, or the global scope if the parameter name is not present in any other scope.