Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: exported unset variables [was: 'export -p' lacks POSIX output]
- X-seq: zsh-workers 39755
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Martijn Dekker <martijn@xxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: exported unset variables [was: 'export -p' lacks POSIX output]
- Date: Fri, 28 Oct 2016 14:31:56 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=YgFk45TsRUbsO/tw6fyhE18Pqj5E927Sos1fC4lWY9c=; b=mUSuhcxM5/uot8xPZn9IXG/4IxlZx78d+ztbAVLUT0nJFvr3PrwwlrDR/kbr5kwTYk /Gh57Sl3g6UrEjXEwjzPcqzQk0siEk3yoZwj9J4JSiYVi6Y3T5zLFRtEKdDIscdsLwqU ZIQfiw6odIz/rh5tgpr2sXGkaEzk5spETZc/YPcepCvRulvJQCcYPSKpQ9BX9Zi5An2L yGnJyharvDEWbrJ/8pw5UzWQ0sfhRWSJM9D1BAMGYUpLbCM8HHMUCUcgS0sERH4dbyE7 ye+sxVOgprGRFMsY20FwUxr2vcKWLDMVnQV5/BHAL+dJEq/pDg5QR0m+canQ1a0NwwXF JhgA==
- In-reply-to: <9a5b08ae-f45b-d1df-9b3b-dd47a0f62412@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <ca368ae0-3c79-0245-6905-09a5fc563c28@inlv.org> <9a5b08ae-f45b-d1df-9b3b-dd47a0f62412@inlv.org>
On Oct 28, 10:00pm, Martijn Dekker wrote:
}
} In zsh, however, variables are automatically set to the empty value upon
} being exported.
That's no longer true subsequent to my "export -p" patch:
torch% export XYZPDQ
torch% export -p | grep XYZPDQ
export XYZPDQ
torch% printenv | grep XYZPDQ
torch%
Unless there's some other nuance here that I'm missing?
Even before this patch "typeset" would report that the exported variable
was set to the empty string, but zsh did not modify the environment unless
an empty string were actually assigned.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author