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, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4566 invoked from network); 26 Jan 2023 20:27:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2023 20:27:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674764847; b=RGdQERnG8ORmy+u+64EkKCvs2nic0wJTwQ5O3Z2ZUjmBB9sFmN7NAE/WKI1ZXPvoluSyRIZGHq m5IZBU6aTlr9aR7LCx3Q3l1rIXgXSLp/6X0Vh5RVtMF6yxzm0dgitbNYvZAEg1H1tuJKWzbO5d CMv7QtnzpSdKOsIbTiBAFHM12L5FLJqj7SMULxuHhCRGIaLBus2EcxOt4OVbhtGq+uKaaB2m68 Izt4bSa/n2o2g4yYdi1Z4g70HK84g8T3gmydoN280o7UeF/RkGHOMiMQ3jZAs+vXdxq/3azykR ziKFJaqT5uft9lYsRwSSNWqvFcdD2YWPBK6N/TSZZzmb6A==; 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=1674764847; bh=0sYIqdib3XK1Tw0/qh8oUd0rc81ka0zi1kiBF7nT5pw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: References:To:From:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=IWCUpHoyl2klTq/NA6GiUj8ngqAZKd5XKam0f2rV7H4hygqbX2fjxighN2f/6KX/dJgnzbDF07 ORpl2jlo8/lDUbKrONum1UoTzXuZ6qtGGBH8z+bATe0YM5OM6zTq1xbcEmUbTSNB3Hj9lgA9Cr MGNEDId/G5hQk4lKpA2q9BYQ1NQV+JauZ3WeEA3E+JeoK/+awCFvK8Us7kfsuBP2mqgySvOfKa 5DvdcM0pP1NDhGlCK7cHLMA3YXBDndJ8kJcxr1XOauv70WbOkj+n6UdJGowSwRXZ0As+1wBSNC DUsSmVoQDFtGJNdXt0JMW9amuSh2sQqmzYzJFPbxeSwiJg==; 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:References:To:From: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=0b2ZVbMsfocKDOkWViexeB96f3jvtKo7UohsTKA06lY=; b=o5pHME48N3PJymPrMTNoIG9mDq 1OILJZlKQlq9x9hKFiOYprqm1b2uywboS2DDAOpEm9MU9fo/nUoki0/cLj77WB0lHbboDI8w0bx8E GOCJyNsDkZTQvTQxWm6U5mJ1tyKgzq06eX+68/OnNgV4f/7ZzdE2M6Fz31EVbw0DJggqFGQhGcp9C n8X4bE8VqS+Zv2oxjB7RFlyHeQ7pxnwUaV1KAa6k6TxsuL86WLULugGNNIpQn+CowvtIOh3ChPqXY n6+vvZnyQvKjRfpLB1jldBvCNLvB/NRpcthDwPH9xDWn3k1271PVmM2ZkFtQJOJukXkC92naTxgTG V9tZB7Lw==; Received: by zero.zsh.org with local id 1pL8qD-000OBx-JD; Thu, 26 Jan 2023 20:27:25 +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]:58809) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pL8pV-000NSo-A3; Thu, 26 Jan 2023 20:26:41 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0RP3004CLZDYE220@mta02.eastlink.ca> for zsh-users@zsh.org; Thu, 26 Jan 2023 16:26:39 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id L8pTpeFsb6z6sL8pTpenPu (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Thu, 26 Jan 2023 16:26:39 -0400 X-Authority-Analysis: v=2.4 cv=bOzQYtyZ c=1 sm=1 tr=0 ts=63d2e1ff a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=eaOPLj-XiNRZcDZrCOAA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvgedgudefkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuhffvfhgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeefheekieduvefhfeellefhieduleeulefhfeefueeifeeuleekleeiiefgkeeitdenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Thu, 26 Jan 2023 12:26:38 -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 From: Ray Andrews To: zsh-users@zsh.org References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> <00818033-2566-52b3-33a9-62591a93d707@eastlink.ca> <394f641a-318d-4e87-4f9d-de54119b7dc7@eastlink.ca> <9b64443d-2d97-a4d9-0028-4b950c319c1a@eastlink.ca> <2f2c3ae4-ca4e-8101-5934-9eb493ff61cd@eastlink.ca> Content-language: en-US In-reply-to: <2f2c3ae4-ca4e-8101-5934-9eb493ff61cd@eastlink.ca> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28814 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-25 20:27, Ray Andrews wrote: > You've copy-pasted wrong somewhere and have $( where you should have ${ >> > >>      for name in ${(k)parameters}; do >>        if [[ -z ${(P)name} ]]; then >>          print -r -- $name >>        fi >>      done >> > That's what I'm running.  I suspected the same thing but .... Strange, I fired up the computer today, run exactly the same command and no message.  Fool around for a while and it comes back.  Restart shell ... no change.  Restart terminal and it goes away.  I'll try to figure out exactly what triggers it.  Must be some environment corruption. Bart: In your (temporarily name-shortened) describe-params, I'm trying to capture the output to a variable for further processing: #describe-params () dp () {     emulate -L zsh -o extendedglob ddescribeparams=() local line=     set -- ${(ok)parameters[(I)${~${(j.|.)@}}]}     while ((ARGC))     do #        print -rn -- "${parameters[$1]} "         line+="${parameters[$1]} "         if [[ -${parameters[$1]}- = *-hideval-* ]]         then             # If param is hidden, typeset won't show anything so use this: #            print -r -- ${(q-)1}             line+="${(q-)1}"         else #            typeset -m -- ${(b)1}             line+=$( typeset -m -- ${(b)1} )         fi ddescribeparams+="$line" line=     shift     done print -l -- $ddescribeparams } ...             line+=$( typeset -m -- ${(b)1} ) ... isn't working with eg: $ typeset -m yellow yellow=$'\C-[[33;1m' ... the predictable thing is happening and the color code gets applied and my terminal turns yellow.  How can I capture the value of yellow without that problem?  I've run into this before but I can't remember the solution.