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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4733 invoked from network); 30 Jan 2023 14:57:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2023 14:57:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1675090639; b=sZQe9molgP5PN2hxg0XHzjn9yaGqbImjZC3gvWXYezPc0rnAo6cIZyqodFBMqFoziWymt+wGK/ wNJ9g6ka80ZPGPJLXkUayOZcOF0F8Uv7uiDf4t3UjowQFY+RWVFRHoF/0djw/D7zyCrPLwLU07 KpCJc1fVoM2h5SXHZTEYrGVqHwisQQ6d/jAtJ5b/7tvO4D2bkzNln5+552IKoF13WGAIp6xl1Y 4fotE6ruCko6dbaEfPvBWSzVEXLCsZGob1xkpT/AKTRTBGx1EjtRWpP9lmAWNi7bv0L8l37QmD J9+JneW67ZgtKGEhO2v3esuPmW9G3TH4onOl70IKa9M6Lg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f181.google.com) smtp.remote-ip=209.85.208.181; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1675090639; bh=3zQ0KlXshtnEEu7X1/y0YBBF3CW6+/z9JLHTgW8i3mY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=pqIWHvl+Vt6JeJ0rdl1yo6L0rcwd8WMrr8Fh9ocsICjsDoxRty5eSqezkzBp12gNqhI9zLQwC3 tH4ujJFe2DKH+T1/E9iHZMNXjHvzGKr/vpIRmnM4l3W8M5rPZV6jtdxMzuOULna6EctzmNPVCZ fDXyry6DNgZTT4SWmbwFz0tLH5qlIVXiE2buViDU2MaOgOk1OOUE0p3g0/Mp1QgS+Y3URabCk5 f7+i2iDyQocz6+AekRpUMFk1DsBj5nM7BFH35JJRKIIIJ8QmsH4vgRBWJy58yu9pyLD/CzzVZW 2O45RvIk4Lb4EGVYjr3hyWMWS4U/1P4sAGYYGQZ9RUdPxg==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=AVOshTZFTZz+EIKiCVvP1winHqRwGa8pjDqfYpp14h4=; b=DHZ9fpZV0xounyON8l+jNJbGtI YR/z/34ITDn3M/HnuOEHfm59y2FCW3BaFvuPtyb8HOT5BMnjVxI6vRNt5WJsL/Qff037f/h/PzfxD w/naU4uaWbylGwjvJBY313/Tdb3+qcVhsDFykZ9prfbjjXmti5rvws5OZ9re6hV+X4YfK0PgWCS/x dbHWX2Y/UgJseZKpdSsLiw9buU6sFAlXjpdI1drGnYLnXZyDrHCS+ulOYk42BJVM4ZrWLpQ0XZNry SBAQ8bWAt4pF+8feqohzCWwPgyxe6ziRUBpdJN8XRMoAfqn95kzncBrvoKa5c47Yns2qGaRp/yuLW rcA/j0zw==; Received: by zero.zsh.org with local id 1pMVax-000BU1-9I; Mon, 30 Jan 2023 14:57:19 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f181.google.com) smtp.remote-ip=209.85.208.181; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f181.google.com ([209.85.208.181]:41612) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pMVa6-000AQG-17; Mon, 30 Jan 2023 14:56:26 +0000 Received: by mail-lj1-f181.google.com with SMTP id b13so2835023ljf.8 for ; Mon, 30 Jan 2023 06:56:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AVOshTZFTZz+EIKiCVvP1winHqRwGa8pjDqfYpp14h4=; b=oNJolFxoYAE2YkE1BofTpoYGnxvHl8wvF4BaqCytxXfdO9Dtso/Z4oeSm3yWyZFjmH BPV6PzKKzjBsJbp7JUZLT5sSqDz58n/SexD3ohZ5NxXxDc+YQZaEb7fYF6efvcnWId+a xw72YURv3d4FN/a1FXFBtbl0hTdlUcXOCy8rJ8wd38DkrP62TDJSp8ytfSbhtd+Vl9dJ 2l0jv/cFu11Nchm8BrVoTNrb8XBjZag4bLwJW7f3WsTw3RjqXUAYJsplr49Jxllim/cu 2Bc8Nc9JEMAKHzHFFDLKK8jfaX3bDmzO9A6OZxWSxmS7cST6hV34ubrYdqtXScMAZIRv lfWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AVOshTZFTZz+EIKiCVvP1winHqRwGa8pjDqfYpp14h4=; b=8JPjF0Muoyk+P+/VO0v1U+S/70mCY2vlhp/pp5Wo9/RcpoXnMIJJzjdRPO7x9pjWMq bZxGxl5Enh+z9gXTpuUZkRYVrAvVAZ6hdAuARquouVvKMiz5di95KwYGsLoHjNqLVY9m bBwXJbkHM4nnZ3I1LdxEtsubnZcL1WGrqC1zISyI0bWmfZuH8/RF0XLSeSd9GfNw+fK4 xbHDLgJBvXKctKNXp3GEZkOPgBebGaOa7XHjSUmX7WjI+aAcSJScsH3LPpZZY0gob2Mp 7iLHBA4CT7L9dMyAxynpmQsrL6PUvlZ5v9PMXTr6emkuwOvqcgyCOj9EjlwPdz3HSEDp upDg== X-Gm-Message-State: AFqh2kqbHr6wqyFbtH3PMabUtVlckkcuqPEdPCyac44UYvZk2mec7lCj zDmlqfbN+LE2MLl9rLRMKkTvHIWrWOo0UX7KNTI= X-Google-Smtp-Source: AMrXdXvAj/R8Onqjm9TY7gj8RxSTstq7hP10i5mueW1nrOG48YqRU1rC6/WbLCABpt3L2/ltAc87GQZbJOEtPJ5Qaxo= X-Received: by 2002:a2e:8018:0:b0:282:1cde:cd00 with SMTP id j24-20020a2e8018000000b002821cdecd00mr3481016ljg.154.1675090584842; Mon, 30 Jan 2023 06:56:24 -0800 (PST) MIME-Version: 1.0 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> <86e60311-983b-63b2-235e-64b3294f9415@eastlink.ca> In-Reply-To: <86e60311-983b-63b2-235e-64b3294f9415@eastlink.ca> From: Roman Perepelitsa Date: Mon, 30 Jan 2023 15:56:13 +0100 Message-ID: Subject: Re: path PATH To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28860 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 Mon, Jan 30, 2023 at 3:41 PM Ray Andrews wrote: > > > On 2023-01-29 20:41, Bart Schaefer wrote: > > The explicit purpose of the hideval attribute is to prevent "typeset > > -p" (and several other things) from displaying/restoring the value. > > > Interesting, that's a logical dilemma. It's like writing into the > constitution that the constitution cannot be changed. Are you confusing hideval with readonly? You can change the value of a hideval parameter like any other. % typeset -H foo=bar % foo=baz % print -r -- $foo baz > 1 /aWorking/Zsh/Source/Wk 0 $ typeset -Hi zzz=123 > > 1 /aWorking/Zsh/Source/Wk 0 $ typeset -p zzz > typeset -i zzz > > ... that's simply wrong This output may be confusing to you but it's not wrong. The absence of "=" in the output means this is a -H parameter. In one of the previous emails I wrote that you can recreate parameters in a fresh shell by evaluating the output of `typeset -p` from another shell. *That* was wrong. The docs don't claim this. > Hiding the '-H' merely fools you into thinking > zzz is a plain integer with no value and that's not correct. This *interpretation* of the output would be incorrect. > 1 /aWorking/Zsh/Source/Wk 0 $ v zzz > Iv zzz = !hidden! > > ... so at least you see the attributes correctly This is a different representation for the same information. You could argue that this representation is better because it is easier to parse for a human, or easier to understand correctly, or more difficult to understand incorrectly. You cannot say that it's more correct though. > Is there really no way at all to see the value of a > hideval? You can expand a hideval parameter like any other. % typeset -H foo=bar % print -r -- $foo bar Roman.