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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 614 invoked from network); 27 Jun 2022 22:39:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Jun 2022 22:39:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=44hUegMdSFcWICkmrIjoFtn21H42MF63Df/bXXh/Jsw=; b=pN5JIwvftX0t4iP6vWKUfdiC1I XTtzwkR7A2WxRTuXpqSdIVBshbUrC7huTQyR9OO/hUqq/lAFC3O3z969g1cLTjM024mPW5C2hQTmO DLEkaZzuLVk4Vq8X/WE56P7gTEsTj5AioKknpEe2L0/jDgBAsrvUNDo92fXnNLZeEaIVW9DMnpRZ5 8O0901+e5cTSKmzR0+Gc/6aQz7rteVMPBJHyUYqo8hohSogJ3lcvZYjDcIZWfqfbya2wqekNz4+/J Q8/KGSzFUnsrb/22CtH73FspnQSn+nuYetU21MJJUMMYjZYdDKjzYnQ6nnTqhhZn4BUN0kKf5LOVA ecKjCkjw==; Received: from authenticated user by zero.zsh.org with local id 1o5xNq-000Cl2-HA; Mon, 27 Jun 2022 22:39:06 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1o5xNK-000CR0-8t; Mon, 27 Jun 2022 22:38:34 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 1A73927C0054; Mon, 27 Jun 2022 18:38:33 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Mon, 27 Jun 2022 18:38:33 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegiedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepnfgr fihrvghntggvpgggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpedttefhveegtedtgfeufedutdehfeejheffffduvdeukefhteff vddthfevgeeggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E666231A0062; Mon, 27 Jun 2022 18:38:32 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-713-g1f035dc716-fm-20220617.001-g1f035dc7 Mime-Version: 1.0 Message-Id: <5f14e266-e12c-474b-9366-48ed035de392@www.fastmail.com> In-Reply-To: References: <3accd9cb-aede-41ce-96e6-f3e175392b9d@www.fastmail.com> <8d72c021-e5db-469d-b5ec-886248c26e46@www.fastmail.com> Date: Mon, 27 Jun 2022 18:37:41 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Roman Perepelitsa" Cc: "Michael Smith" , zsh-workers@zsh.org Subject: Re: Bug: 'export FOO' not idempotent Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 50393 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: On Mon, Jun 27, 2022, at 5:58 PM, Roman Perepelitsa wrote: > On Mon, Jun 27, 2022 at 11:52 PM Lawrence Vel=C3=A1zquez wrote: >> >> On Mon, Jun 27, 2022, at 5:46 PM, Michael Smith wrote: >> > Thanks for responding! I searched a bit but hadn't made that >> > connection. >> >> Ah, yes -- the discussion was about "typeset", but it also affected >> commands like "export" and "local" which in zsh are basically just >> "typeset" in disguise. > > I remember. I was following that discussion. Yes, of course; you participated as well. That explanation was for Michael. > Here the issue is > different. The problem is that `export FOO` doesn't export anything. > Moreover, the subsequent `typeset -p FOO` says that FOO *is* exported. > I think it should work as follows when TYPESET_TO_UNSET is not in > effect (the default): > > % typeset -p FOO > typeset: no such variable: FOO > % export FOO > % typeset -p FOO > % export FOO=3D'' > % env | grep FOO > FOO > > Currently it works this the same way except for the last command, > which outputs nothing. I think it should output "FOO" like in the > hypothetical listing above. I agree that that would make more sense. The current behavior is rather odd. --=20 vq