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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 1kiRYY-000Fjt-TT; Fri, 27 Nov 2020 00:24:10 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f178.google.com ([209.85.167.178]:41993) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kiRYG-000FV7-P3; Fri, 27 Nov 2020 00:23:53 +0000 Received: by mail-oi1-f178.google.com with SMTP id v202so3982972oia.9 for ; Thu, 26 Nov 2020 16:23:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KtjdkVBLy1dbrQoIP+VJv90Z8xwmOpJ4Ls4lr0ynrzE=; b=JGREICmEiaDiSlo1G2mb0nGEjmijTt56S/Xk+0bFDwN60HQH6pECxsA9Dc4IUfu0ux HiwcfO/hzpUnPjPjJegJ3ZuGCqNKvFa4QD1bgNJFK70uulxCdwy5K4Xxthg6siC5dYUy 8UoY6Yi8mB2UljFlBrmBnmTyy2n9/l4W3suWZIJVLsE0iTwXzpv9cFLJouRaqsb9LVO8 QLMvloe3Hbrb6mMAEH2UZ/QnRxxB2CMpyWnkj0JS0NNG36b9QnpAKAL350a6DpruMQYp o1khnpv8mn5+SyKYVCvVr+bhBP8VwlEQjaa6jtd/gmcZfAQnez12tQqRt/iIiAk3txMl v7mQ== 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=KtjdkVBLy1dbrQoIP+VJv90Z8xwmOpJ4Ls4lr0ynrzE=; b=uP96W68xLrume7zI12felw2vg/rg2Scl/ZnHvqSJ6OAKm/WzXGQ3eX4FT5vAAiFUJ1 ylMkldq0P4ZcLh+OvXNUiJxOKZPYSG/njnt83aAEn1O0m02l/dWdqh0E8NrbUDgYVY38 J4f34wWCj0aeL9ojWjTNtcipxs23laaW0ERvkUv1v9mgbl89UfCHgAsWwZ+A34OMkD0z tgDpnAscfN13mkinaVAZ+7o1kP3kFgeh2qoYO5jrT3uPJR/znIX8Kc4Ibr2ot+hJg2yG AZlXH16NZn5mCo560YAsRz2S3L3bM2DuHf7isYjtq+IBnmGP6UuGMv4VV4SFPX6CtaC+ Fy3A== X-Gm-Message-State: AOAM5303VhqizXAh+LXGag3+UrmcOQ9v0PDg/uln1sRZHrjxLG1m+1nz beN069fVv9EDQdHXhs3P7TPwzEqZ9Lo5Hq1ETcLRZ9wFptY= X-Google-Smtp-Source: ABdhPJxylH7j0WWAKkeoOM7A+0je3hDifuTAb1RwmsPasRnVMyflM5eAIyQ8BYsB8h8bC+EevliiZxf9zFQNQIibg4I= X-Received: by 2002:aca:6087:: with SMTP id u129mr3625140oib.173.1606436631265; Thu, 26 Nov 2020 16:23:51 -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: Bart Schaefer Date: Thu, 26 Nov 2020 16:23:39 -0800 Message-ID: Subject: Re: More rabbit-holes with unset variables To: Felipe Contreras Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47656 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 3:53 PM Felipe Contreras wrote: > > > 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. The point is that the exported value DOES NOT exist in this example; if you were to look at the C global "environ" array following "export FOO", it would not have (a pointer to a string containing) "FOO" in it. > > > typeset -x FOO > > > > > > Is different than this: > > > > > > typeset -x FOO="" > > If this is not inconsistent, then nothing is. Now I'm confused. All along you've been arguing that { typeset FOO } SHOULD differ from { typeset FOO="" }. Why does adding -x invert your argument?