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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31623 invoked from network); 30 Jan 2023 05:17:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2023 05:17:56 -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=Lm9K9avpUQOOf+VGSRgiTOIlzeWpjf2ZFnw4NkSBrNI=; b=H4pSryHwiGtHTM+F7yNoUW5t3t id4y+qXzCt1nq4uPi4GVzZjPliCfi/FSZKeL/fBB5lYMonn1O6or5KIeM7v/qiXgwh/4r/DZuelKU ju0FzqgWTCML/N7gNSkeAV1pTNDgmmjIOM7wPR3agXN2HpA3who6BW3oqYISl6wWa8QY7g8SyaA69 5HVg/bGe958wCrYt3m9PmalarnB2S2zzistvTpIgPfxQEJSNulVKBEgXx1KLPoae4TB6o7X1YawzD B02tsDKht0luNy+NTe4chMu6S1Uh9Ko9iLkbyCELYMDZQmb7LwDtHX+RaDSIQOP7EtQ92HK3R2Ic2 /8wwwuww==; Received: by zero.zsh.org with local id 1pMMYG-000GSz-6K; Mon, 30 Jan 2023 05:17:56 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pMMXY-000FmB-5c; Mon, 30 Jan 2023 05:17:12 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id 9DB6327C0054; Mon, 30 Jan 2023 00:17:10 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute1.internal (MEProxy); Mon, 30 Jan 2023 00:17:10 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefuddgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepnfgr fihrvghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeehgeeiudeigedvvdffvdegfeduudfgtedvtedttdefuddtjeev gfejgfevteehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddu hedukeejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrg hsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 66C8A31A0063; Mon, 30 Jan 2023 00:17:10 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-85-gd6d859e0cf-fm-20230116.001-gd6d859e0 Mime-Version: 1.0 Message-Id: <0839946a-11d2-4c9c-90b3-8e3255e12f19@app.fastmail.com> In-Reply-To: References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> <3ea702de-f818-adbb-c55b-e585f8deb10f@eastlink.ca> <1a232406-ad76-b661-496b-974ddf8e67fe@ckhb.org> <8f626e62-312f-06fa-d073-5910d1aba3ad@eastlink.ca> <4993b3f3-3b71-fb80-fd60-3e72170989f2@eastlink.ca> <562e5e2d-44ff-0402-61ff-b621edecf116@eastlink.ca> <1898f1f5-9d67-c832-c145-ee02690f4bd2@eastlink.ca> <102004bd-c372-44c8-9a55-afc298e7c987@app.fastmail.com> <7d104cf5-83a7-2e6d-5696-8d0e613f67bd@eastlink.ca> Date: Mon, 30 Jan 2023 00:16:18 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Bart Schaefer" Cc: "Ray Andrews" , zsh-users@zsh.org Subject: Re: path PATH Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 28855 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Sun, Jan 29, 2023, at 11:41 PM, Bart Schaefer wrote: > On Sun, Jan 29, 2023 at 2:43 PM Lawrence Vel=C3=A1zquez wrote: >> >> On Sun, Jan 29, 2023, at 5:33 PM, Ray Andrews wrote: >> >> > BTW since 'typeset -p' claims to display information in the same fo= rmat >> > as for the recreation of the parameter: >> > >> > ... but if I run that output as a new command, the -H is clearly lo= st. >> >> Feels like a bug. > > The explicit purpose of the hideval attribute is to prevent "typeset > -p" (and several other things) from displaying/restoring the value. > > -p [ N ] > If the -p option is given, parameters and values are printed > in the form of a typeset command with an assignment, > regardless of other flags and options. Note that the -H flag > on parameters is respected; no value will be shown for these > parameters. Hm, I was thinking about the omitted -H, not the omitted value (which I didn't even miss, admittedly). Then again, the variable can't be reconstructed without the value, so I'm not sure how valuable it would be for "typeset -p" output to retain the -H. As an aside: The "typeset -p" description is pretty clear about hiding the value of -H parameters, but then what does "the option does not apply if the parameter is specified by name" refer to in the -H description? -H Hide value: specifies that typeset will not display the value of the parameter when listing parameters; the display for such parameters is always as if the `+' flag had been given. Use of the parameter is in other respects normal, and the option does not apply if the parameter is specified by name, or by pattern with the -m option. --=20 vq