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 1kiOs0-0009cb-09; Thu, 26 Nov 2020 21:32:04 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wr1-f45.google.com) smtp.remote-ip=209.85.221.45; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-wr1-f45.google.com ([209.85.221.45]:43910) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kiOre-0009O3-Ri; Thu, 26 Nov 2020 21:31:44 +0000 Received: by mail-wr1-f45.google.com with SMTP id s8so3569094wrw.10 for ; Thu, 26 Nov 2020 13:31:42 -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=tPeGEo09CrQ1Y2JQ6VnsdzLRVZ3BA1j4IqDiAGgRPAs=; b=bo0nonm/e6Nnkx7A2yr1H7mN7lOaPku7I+7YF98SdkBUvysV/5MmRP8J1CxJPR2PIr Rox0nh4p5mmnKWiwm8bAmEv9CS6RuHFNkuGUco9eETajSdw640yoQ4HA0kBRhGdnuBCq 6G1pvb+EiH4V542yFDyT9AfKlHJtnqpKkdsVEXka3xkz9YvRJ8OH5oMS0nA0gyabZeeD 2uqwfJVWLySK0aciZQHdOI6qqQGhNFdfzLOmos5sAkFRSnslHLk81SCnZGEoyS53VuxO oTRfAHyeQXyKswG1BO4mSKbk1/lJDzkaqOoy1J5Susivs+nSj+s/hez5s1P8B1JAus8d /5Fg== 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=tPeGEo09CrQ1Y2JQ6VnsdzLRVZ3BA1j4IqDiAGgRPAs=; b=WoDdzJFbTY+q3PBwcs9G3i3PUenUDrbN+dU60tRU7oGl7jTUDECMAzvpf9pyB93TQl nGOyIsEVqMu5LcbfzDaMb4/rhBI5xxVgKqWm1MtTQIjlgT8gNKGwexlCVpUiGtoDKXA/ c04HJd/CINRxLI5oxTBMhyIuc9udsrrHRDyJfn2v1ZI6cMnXMuk294r+8/jcd2VAEzKf rp/IPFq/KeJijDgIylD0RZfbreM6RPshbuD88SE+RAMNDMWBXcJVCxEld0FcjG4EMhIK 6/gopwIgxCQ8J2qAoYuarc51N5M/tdDIm8r585rVgiD28G+fiPIvO/fw7+UZu1Y9v/r4 AxBw== X-Gm-Message-State: AOAM530miNZBosACesexeKNFf3ERslg8y9CYbilB8aG34lQrgEgj01PG xGoTQE4Cgo3VP+hScxYeCtmJ3hsDljERyyZK3OqMnCh9b8U= X-Google-Smtp-Source: ABdhPJyHoBcVGJyoRqIrB7BZqziYBBeiG1vBpJAHNHumMe77wfAhVAAFIeLAg/utTqosj6WLwunYM0iMrU9LGg4ptTg= X-Received: by 2002:a5d:4349:: with SMTP id u9mr6053917wrr.319.1606426302533; Thu, 26 Nov 2020 13:31:42 -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 15:31:31 -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: 47648 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:13 PM Bart Schaefer wrote: > On Thu, Nov 26, 2020 at 3:22 AM Oliver Kiddle wrote: > > This does change how I regard zsh's behaviour. It isn't zsh taking a > > different but equally valid approach on an extension but an sh > > incompatibility. It once was a bug even if now too entrenched. > > It doesn't export the empty string at the time the parameter is > declared, but it does consistently set it to empty string internally: And you don't find it inconsistent that the internal value is *different* from the exported value? Plus this: typeset -x FOO Is different than this: typeset -x FOO="" ? -- Felipe Contreras