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=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RDNS_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: from authenticated user by zero.zsh.org with local id 1kiR5a-000ETN-P0; Thu, 26 Nov 2020 23:54:14 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wm1-f47.google.com) smtp.remote-ip=209.85.128.47; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wm1-f47.google.com ([209.85.128.47]:35420) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kiR5I-000EEy-Kb; Thu, 26 Nov 2020 23:53:57 +0000 Received: by mail-wm1-f47.google.com with SMTP id w24so4102279wmi.0 for ; Thu, 26 Nov 2020 15:53:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+/Wgr6rM3ejhkYq4Xs8dI1SJE+AsHCyj9sFWvQk/4yQ=; b=id2FZgY+6UCjp0G4Hpfozpj5xeFVRu1LdN0fzu5oOXwp1vzEqEnl5qVfGa5jhZ4U8u yGXqtpG3TIebjPRxojQ88JlhSl6wALEmwpUDI33DRpmoQYRH37Ot0zRXg1R4fHMRxrgL OXEgU3QYnUpgmBQ3M+8s0WlOOZPd5wQ0wZaHP1hgFSzG2vXEbjc/wee7HixNcxdygq4h aAEUEi1ecNf1U9GXLf2Y792UcNqOrTFE43yr2QDnraV/pPahEY2WnmZQdfkv0If3msDR TAnkznaPa7H+gxzkUpoHHRakdB4OvYzbP4FTjdMj8ok/kq0ccdFFov6y+TU/IB9Tkwmx 3rTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+/Wgr6rM3ejhkYq4Xs8dI1SJE+AsHCyj9sFWvQk/4yQ=; b=K3L7Ieq0yZhkFkAvR6gxnQrQjOHlikyirNJ70FsuafHZLCErp96gwYvXRFnPkXVa5I Q3kii/MD5oYUHRHtWE5GPPqS8duBJ0ef1OVuNknFFUZrT+foRe5vhkfSQ/OZNgOuuKeR XmtKtvd/ykN9Dzqhl5A0Pj2Q2MxBNurW2IJAxmOzNdTHYPkNZtQbnJxzyo+ngWZykb4S Z73bLe2OW0GDZWi6wNv3T5PdHRdudO3eJV9SB8acynVBjGkDe+3KDzJxNBNOf6pCjWdn gYLxaRY5E6JAGuC4dNUNz2kAf2gkAjetLBACceHvVyYecwMs7Zvn7RpPyo04c1X1MTJC JxOA== X-Gm-Message-State: AOAM532RYyOwCmpsYyC2ff/EkuSt2HEAviF6EjMef5+YI4styS6qr2QW 50366sqYAQTxUOeeSkoi5cRMqPVXRiaujGYoKPDlx2ajAVc= X-Google-Smtp-Source: ABdhPJwZ5E5PxwFDhxYWTG1zK88AbGBmh8oMfVnmNZp9s1WlaYr+nYkVwzjdKwwB3ty8F+vEu6cR+kauzR56PiCwSX4= X-Received: by 2002:a7b:c3d5:: with SMTP id t21mr5760397wmj.37.1606434836321; Thu, 26 Nov 2020 15:53:56 -0800 (PST) MIME-Version: 1.0 References: <20201125131921.vay7h3xk5qn4odgg@chazelas.org> <20201126061029.in5tpnrg5bplam5k@chazelas.org> <86243-1606389706.499549@-gQx.nNYG.4Z3k> In-Reply-To: From: Felipe Contreras Date: Thu, 26 Nov 2020 17:53:45 -0600 Message-ID: Subject: Re: More rabbit-holes with unset variables To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47654 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: Archived-At: On Thu, Nov 26, 2020 at 5:29 PM Bart Schaefer wrote: > > On Thu, Nov 26, 2020 at 1:31 PM Felipe Contreras > wrote: > > > > And you don't find it inconsistent that the internal value is > > *different* from the exported value? > > That's a loaded question, because to answer it requires conceding that > there exists an exported value from which the internal value differs. > There's no way to "see" the export namespace without forking an > external process, so only the internal value matters. No. The exported value exists whether you decide to look at it or not. > > Plus this: > > > > typeset -x FOO > > > > Is different than this: > > > > typeset -x FOO="" > > > > ? If this is not inconsistent, then nothing is. So I guess nothing zsh ever does can be inconsistent, by definition. Cheers. -- Felipe Contreras