Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: More rabbit-holes with unset variables
- X-seq: zsh-workers 47648
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: More rabbit-holes with unset variables
- Date: Thu, 26 Nov 2020 15:31:31 -0600
- Archived-at: <https://zsh.org/workers/47648>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-11/CAMP44s3h2q42%3Dy_fbts5mbgb8oYXYVxKrXQUS35k205X1i15OQ%40mail.gmail.com>
- 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
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- 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==
- In-reply-to: <CAH+w=7bxavq4DMJtTmSAGTOSoXKsFaXPVyUAGqN1cZLF=+57JQ@mail.gmail.com>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <CAH+w=7Zag5MG5D=cRS2UMSsqJ0t=iw5MH9j8=HBO1Q77nbs03w@mail.gmail.com> <20201125131921.vay7h3xk5qn4odgg@chazelas.org> <CAMP44s0-ki=TBzTwnqx10FcTLX4mbphwN88UCx0+h97JTecBWA@mail.gmail.com> <20201126061029.in5tpnrg5bplam5k@chazelas.org> <CAMP44s1XgxdDAAL+7nL3_GK=dZUasPmSWZaKqWg0T-v5iq1eYg@mail.gmail.com> <86243-1606389706.499549@-gQx.nNYG.4Z3k> <CAH+w=7bxavq4DMJtTmSAGTOSoXKsFaXPVyUAGqN1cZLF=+57JQ@mail.gmail.com>
- Sender: zsh-workers-request@xxxxxxx
On Thu, Nov 26, 2020 at 3:13 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Nov 26, 2020 at 3:22 AM Oliver Kiddle <opk@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author