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 21345 invoked from network); 12 Mar 2023 19:25:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Mar 2023 19:25:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1678649119; b=l1r6mU1qSynW2UTq5lKhM5143NxVAMhlTB6GZIZR2Hc/j7AMyUkyJYLzS5xSKBbknV7mGTEFB7 M5GLevgw5falPcGQGDQP6EhvjPvxbQugtrpi01B0uk/AFJaP5LicWsmob8p1va3JdmcASdf5Sg XAIEnRGrHOP5HcNbPonRFw4YHW+5b1OFHWbBtd1A9ZPKqxiokurKNlrvSiN/812u17KGDDtvjt I+Fho12vksijtFG+7oejroVKAjY9ofE3VtLrcsXoAL8tbu0fFv7GP0Yo2XAeAxka1L23jg9ZVB iAN342oI2pkMn3DfYt45O5nHT7YM7CncYzXVktPILlgolg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f48.google.com) smtp.remote-ip=209.85.208.48; 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=1678649119; bh=W2+iGdfR0qB+2JP7Z5bqKjW+QNT6+2Nby5jdQiB/NZ8=; 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=G0zQWDCqcXDxxB6AYHlEs7LmmXGIyYiDsSevXerSAXbVbFcdIDGG0t5Old4bdZLN3ud8AAnuKX 8z/KhFoCcK7VIIklr6hh0U/5dBG/8l5IfMbpJ43FXdGGRUP2Xa8jnFoG7WX18yq2/41hNMKi6Y GeNzy07je5AP2iXEUFkZrkqAnC7CSb2tkAPQy4kQJZGv6NyYRdPGK/pdXE/rgpJQUo4ZccFNic Kmh4d6LjuMHoBrl2r06GgNegytm0ccDf0vg1yvFDiAAYDYfxhVbBotonGr/9tMYfz/kBLujF03 +9MUrJs2WZc2tbw6ycjtSLmRe9PTF/DiIdEusEaTX4c49g==; 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=P0b9lpRIDK5BP5Log4D3hCjdbpHn4Bo3EoMIBoQLG8E=; b=aZLyCksod7PKGiET+1r/4JQzKW D9xnb4TnDg6FXDv51FhqWqQcXxqosMGDShjIhxEcwdu6Yu9IzTyAnW47P1Kbtwh6j+loMgogeEHKw ysY9LXvhlzb0Obb9B4oo5JTicslejm8NlyI6EPJISynTtGfhedpdv5IZOqXIQ7zmPteIKl/hF2eJ0 s4r/lTQa46Twt6hw1lAc/VGdEmYgaNwBmAUJ5nkdIaL8XnEQd8XJQu+pRs0xHUa7CuoFV5iR/AEHD 8i0Lk0bHnZiVbA9CjAS/7dB0OcKLYk5IXGxdELMwNl8ShJgg46vmpCASB2fwz1A7FiXn9ROAFWMJg SFBaPiBw==; Received: by zero.zsh.org with local id 1pbRJh-0000fN-U9; Sun, 12 Mar 2023 19:25:13 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f48.google.com) smtp.remote-ip=209.85.208.48; 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-f48.google.com ([209.85.208.48]:34585) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pbRJR-0000My-NK; Sun, 12 Mar 2023 19:24:58 +0000 Received: by mail-ed1-f48.google.com with SMTP id g10so11644530eda.1 for ; Sun, 12 Mar 2023 12:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; t=1678649097; 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=P0b9lpRIDK5BP5Log4D3hCjdbpHn4Bo3EoMIBoQLG8E=; b=XHTxEOyCq/Jqq3/6alboBA/5O7vGOEcFWYBqY0h22mXihInafAZ9nE0FWfhOyrCrdB JOSVnD6rfNW7q4kPEjylov+CRhyHFEvqWts1V7HRFFZt81CbQeE4hwcaVBKlxXaJfzxJ JLszJK7CzjqHKpfQO5bPt1l/XiJLKj5G1E7m/unGEasmvHqnlwzWRVg9c9HEhBoXs/xD biN/Ud7AESDLhGUkOByeyCVvwbCB6I4jew43+TWs+5eeXBTNuit8Ck/s2zrEp1FNe48O hTNondMgSPfgP5xFmjVXBEP4E75jQEtvZa2+O3je2LG7nhdUTlesRhKhEAeHTe0MwpS3 xgMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678649097; 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=P0b9lpRIDK5BP5Log4D3hCjdbpHn4Bo3EoMIBoQLG8E=; b=MUtjJ9FBinmvpx0X6yya95K0YFLog2pfpHl7DjDrNNg4TpEZI28eobb0esnCSRgBg8 75DBm2ViLSv1lH2gcQ6xp1twW5IlbtL5eOs12Sl8Su9JVqKlhu/PXfZnr+7P2XERHvEk /ykdKfBMEt//Al3ar6Qh6YqYQOVCt1S+QWAVltZnm1Lo0tPn5tBFhlCoa+uUJ3DBs7Um 5aaQoE2gZmh5HLqK9dSuOzFU/xGELo0DwUwDDTRLUbWlsDGMFJfkg2eh/aN7jMwbVUc2 TY1+hrZmn3VBnsKraOfv44JfwLn53tbi2JZrD4yM6B9woqj7BvqXEyCkCBIhVga3RjHi Yxgg== X-Gm-Message-State: AO0yUKUqUyZbL9w6F/ump9cVGtyOdo7G5CdFNwNG72VM11SEZ66VGLLc 5y5csFupaEqOcil+KfgGRhwlK51O7w2E4YdPGp0sJg== X-Google-Smtp-Source: AK7set+0Gay6oG9yCXVPSmiGwC+jSkbsjXOhE/lIViZYbJUgsxCgST9wj4rpA8xQ78GuWDb9l6bkpYRkzPIr8x6NtPk= X-Received: by 2002:a17:907:6e93:b0:920:da8c:f7b0 with SMTP id sh19-20020a1709076e9300b00920da8cf7b0mr2400067ejc.6.1678649096825; Sun, 12 Mar 2023 12:24:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sun, 12 Mar 2023 12:24:45 -0700 Message-ID: Subject: Re: Reserved namespaces To: Sebastian Gniazdowski Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51565 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 Sun, Mar 12, 2023 at 9:46=E2=80=AFAM Sebastian Gniazdowski wrote: > > Will be creating own namespaces allowed? Yes ... as of the current patches, namespaces are not significant except that parameters in namespaces don't show up in "set" / "typeset" output (unless asked for). It's an unresolved question whether to implement the ksh "namespace" keyword and its effects. This thread is about whether (and potentially which) identifiers we want to declare as reserved for the shell's own purposes. To that end ... On Fri, Mar 10, 2023 at 8:56=E2=80=AFPM Bart Schaefer wrote: > > It occurs to me that the CORRECT options and their behavior do not > depend on ZLE being active, so it might not be appropriate to put > keyboard layouts in that namespace. There are also the parameters > CORRECT_IGNORE and CORRECT_IGNORE_FILE to consider. Reserving > "correct" as a namespace feels odd as well, but I think mostly because > it can be used as both a verb and an adjective. Other ideas? I'm presently thinking about a namespace "interact" to group variables that apply only (or mostly) to interactive shells. Then for the original "Colemak" question we'd have something like: typeset -gA .interact.keyboards=3D( [QWERTY]=3D$'\n\n\n\n\n\n\n\n\n\n\n\n\n\n'\ $'\t1234567890-=3D\t'\ $'\tqwertyuiop[]\t'\ $'\tasdfghjkl;\'\n\t'\ $'\tzxcvbnm,./\t\t\t'\ $'\n\n\n\n\n\n\n\n\n\n\n\n\n\n'\ $'\t!@#$%^&*()_+\t'\ $'\tQWERTYUIOP{}\t'\ $'\tASDFGHJKL:\"\n\t'\ $'\tZXCVBNM<>?\n\n\t'\ $'\n\n\n\n\n\n\n\n\n\n\n\n\n\n' [Dvorak]=3D$'\n\n\n\n\n\n\n\n\n\n\n\n\n\n'\ $'\t1234567890[]\t'\ $'\t\',.pyfgcrl/=3D\t'\ $'\taoeuidhtns-\n\t'\ $'\t;qjkxbmwvz\t\t\t'\ $'\n\n\n\n\n\n\n\n\n\n\n\n\n\n'\ $'\t!@#$%^&*(){}\t'\ $'\t\"<>PYFGCRL?+\t'\ $'\tAOEUIDHTNS_\n\t'\ $'\t:QJKXBMWVZ\n\n\t'\ $'\n\n\n\n\n\n\n\n\n\n\n\n\n\n' [Colemak]=3D$'\n\n\n\n\n\n\n\n\n\n\n\n\n\n'\ $'\t1234567890-=3D\t'\ $'\tqwfpgjluy;[]\t'\ $'\tarstdhneio\'\n\t'\ $'\tzxcvbkm,./\t\t\t'\ $'\n\n\n\n\n\n\n\n\n\n\n\n\n\n'\ $'\t!@#$%^&*()_+\t'\ $'\tQWFPGJLUY:{}\t'\ $'\tARSTDHNEIO\"\n\t'\ $'\tZXCVBKM<>?\n\n\t'\ $'\n\n\n\n\n\n\n\n\n\n\n\n\n\n' ) .interact.layout=3D${.interact.keyboards[Colemak]} and change utils.c:spdist() to check getsparam(".interact.layout") before examining the DVORAK option (for backward compatibility).