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=-4.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12979 invoked from network); 30 Jan 2023 15:57:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2023 15:57:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1675094263; b=kUQcvlLbEj63Ks3uxm70uy2e/WNaVaY9vwtgk+YCfGtwg8MBWrZnJES2mFuSv7XdbkVnl2K8EP 8wmo4BrjwL7fuykEH+Iakpa3Wnq//bArju6is81nTQP0JlrAURsbTp2ZHnb8W9LBhVUmUbNCpy jcuXtqSr997rWvNRqbxDqfPUE2LCceMdQH0LE1NapDLK7sXMNUeWYAiksrHOeFSCjEa3sUm+iq sKMxw5QIadTD6behSIO8ZAv8rjhVh+clywVQ5NUDUBs0NqDQsmDz6giYRzpzbv/zX3cKRy/0DA KI6g1UjMNk5SPVu43Ew9UzEO8Uk153K8Q7esr3OMq7Tzgw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1675094263; bh=FgDObXViU3H2Hgo9NAvUqXYkQCSRjwzO/U3O50hamqQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=byeTOvF8TvjMOogjZUn+xPuzKSR63K/qvz+uXW30ONYslxhZJxYKhb63PSpdQehczC/5Qcq5og iXYlVyhowV9GZZyWDLN0UzIVjkqsc5LSqX4ZAA/PqL4o1jhOb+Vm8AMWP7mxk2NEK9q1dW66k1 izjtFX5ZMnaC+5nGn7Kip7xNyqxwCS5K8RnwZf1QgRk2XPjOy9vPPyiP+11fTDd3eYQztTuEjd /TwEGa4G+wfpZ57L53S55OvlyXykXkxEzTHK2hP80iFj9bi34t8RDtWM1cJqFhGLtTn2LBItuO 0hIVBboInYTrLlnWMi8PhTgUhsd2MOMLp5fQHZOSg7md7A==; 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:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=9TFYfVdNuvp1ox1eIhEUmlIk5GDJLhh65zEais/WoE0=; b=n+AdujNdz6YA/rfhFu6VNI1Ogk 2Sq8Ds85aPdeGCtRK1R01VzGscnUDH4THKJwN3BFVrGe5SykxsAp1Ok3WO7syaXvL/ndCTRRRAPjA F1uXbp5DtFXOJK50v3tovQnL4WHOntd9qBb09S5TvcwXd7uKon2hW2rdpg+8xa+1cghsaWUGoSu2X pOvI/dZFB34cj48YSbWFfgpu94Ha6HEhnV4rmubltYdEzVFYKA9J/NJxu4YsmqatQaO7hNzlUh36H R4KEEtTo+l4ZHgJqKJZjeH446c+nXiXH1Vu7Z35Hn/UbW9bFSrG8DMwrNaxd3eZPtkT5fJ1ONZG62 RuTujwyg==; Received: by zero.zsh.org with local id 1pMWXO-000ENu-RR; Mon, 30 Jan 2023 15:57:42 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:35907) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pMWWh-000DhR-DF; Mon, 30 Jan 2023 15:56:59 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0RPB0028I1BNKE90@mta02.eastlink.ca> for zsh-users@zsh.org; Mon, 30 Jan 2023 11:56:58 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id MWWfpMPUUjOrIMWWfpPxQU (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Mon, 30 Jan 2023 11:56:58 -0400 X-Authority-Analysis: v=2.4 cv=Kv6Lm0aN c=1 sm=1 tr=0 ts=63d7e8ca a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=ny_SoYIFp9EnLFnVzC4A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudefvddgkeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Mon, 30 Jan 2023 07:56:57 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: path PATH Content-language: en-US To: zsh-users@zsh.org References: <0dc71450-d082-93da-52f8-d4e6b97199af@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> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28861 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 2023-01-30 06:56, Roman Perepelitsa wrote: > > 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. Yeah, that's true.  I shouldn't say 'wrong', it's more like 'misleading'.  I myself think the '-H' should remain. > You can expand a hideval parameter like any other. > % typeset -H foo=bar > % print -r -- $foo > bar Ha!  I tried everything but the simplest thing.  But that begs the question of what 'hideval' really achieves if in fact it's not hidden at all. 1 /aWorking/Zsh/Source/Wk 0 $ typeset +H bg 1 /aWorking/Zsh/Source/Wk 0 $ typeset -p bg typeset -A bg=( [black]=$'\C-[[40m' [blue]=$'\C-[[44m' [cyan]=$'\C-[[46m' [default]=$'\C-[[49m' [green]=$'\C-[[42m' [grey]=$'\C-[[40m' [magenta]=$'\C-[[45m' [red]=$'\C-[[41m' [white]=$'\C-[[47m' [yellow]=$'\C-[[43m' ) 1 /aWorking/Zsh/Source/Wk 0 $ print -r $bg [ colored block characters here] 1 /aWorking/Zsh/Source/Wk 0 $ print -r ${(b)bg} [46m [47m [43m [45m [40m [44m [41m [49m [42m [40m 1 /aWorking/Zsh/Source/Wk 0 $ print -r ${(q+)bg} $'\C-[[46m' $'\C-[[47m' $'\C-[[43m' $'\C-[[45m' $'\C-[[40m' $'\C-[[44m' $'\C-[[41m' $'\C-[[49m' $'\C-[[42m' $'\C-[[40m' ... looks like I must still 'typeset +H' to see the real value -- keys and values that is. IMHO the whole thing is a mess.