Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[bug] problem with env vars that zsh sets itself
- X-seq: zsh-workers 39518
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [bug] problem with env vars that zsh sets itself
- Date: Fri, 30 Sep 2016 09:55:38 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=75Vd2r4GwfDxjnJWfQbTTo7+OKzvORgHcphPNRO0ceI=; b=IDUh3jhX4QsKWJnTWxvxpR+0Wbt8ROgbDAWP9ueHo1/iGfbWm+hVEHcq+eBtpUUX9X L+zkHz3sxyhy4A/Dj3HG9eVvtRd4d2N+wRMwz5KaJYfwvGWd2oxAZbzis/mzmIGPec1S UYJTFT4MPs1UC/9RSF1fsbWCNSqlf1IFAwLjUWV7AiZK0DcaKb0jvnKG9DYFgekm76To NfshrwYpGRQAbPz8+sZmL4IEUxbLXznCqLAxdqsJ9OKaRyM+X1mykDSiqi7HR9Fm0v0g wtqL58n3PN5/mRF1fTodjW0SL8aJWYXnIfhiAV+eBUei+cw5ImGAoTJvLlxthJ7t7+xm IRZw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
zsh's "export" command doesn't list the environment variables
that zsh sets itself.
$ env -i zsh -xc 'export;env'
+zsh:1> export
+zsh:1> env
HOME=/home/stephane
LOGNAME=stephane
SHLVL=0
PWD=/home/stephane
OLDPWD=/home/stephane
_=/usr/bin/env
Actually, it's as if they were not given the "export" flag even
though they are passed to the environment of executed commands:
$ env -i zsh -c 'typeset -p HOME SHLVL'
typeset HOME=/home/stephane
typeset -i10 SHLVL=1
$ zsh --version
zsh 5.2 (x86_64-debian-linux-gnu)
Seems to be a regression. It used to work OK in 4.1.1
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author