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 26785 invoked from network); 26 Jan 2023 02:14:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2023 02:14:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674699269; b=r9EY1IKSNn8Ws6pJvZUm578l6lIfFtYdyvq+l0EBZCpGPmZHmTzYJHLQG7hg4uyPQObtEbccXg invRa3m79ZRMdC46vwxDtOFf6RVjPekDiT+9yIQO98/+RcqCqimZaZSrKbVcElFWKnfzYD+ko4 Xy9EUveS+jiqBL/94yQYU5drJvx6+6G5sNA/AOR21cdV9gk51+VeSxoSMngM1X9OHXhrT7eyBZ 5SREn0vmLUIA/nsOrL6e6I/P0caNJIwPHrT6ARZ+o5AsFqDBTgld/2nTUPrjcI4pFcUlLcSY9/ 6GiGfAziba5qRwAlIYEOiBV+lBO16Bc7orYDwPBY7/ABgA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; 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=1674699269; bh=+D95uh5loHVkaUx2onWZ+ZERIT0Reyp/ffbS0ZTVXQU=; 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=ayVM1XPzL7Lkg5+okwUt4X71IWNUosB/dM1Zh/m0r0IUovhfXCXqmOZNBQN+3C/hKpXufAjejf NmDUZZVFWQeECqyQvMMV7wjHvLwxcPKxn6dYXrdIKjxf3TWt/T7ayK2uzdU3j6UnvQ+hWtW8iH oHW4U6OcoaJ6gHCSWDa6oqSExc1SASsY+5Y1h/odpG62QIyFsJ39shuYnr5Qt7gyEfjsChCxq3 jhzGcq7gAK3zPa1Bv88fZ54hz03x+yrsH73gGGXEY6AZGIfT5i9iJ8ezzZkF5bmG4EP4K4o3gc m3LMVNVx2WnauL7UqPM16eDOqeCFSCEzO0PrvpnS83fG5A==; 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=jGQtn+tSqsxy1I3I9bN7npLvNUhVfCL6014e/Ofa8JU=; b=HyAYNRlvnfE4DZXMqI6+CK3hAq MQ6QGr/TRGKjnDpufl3qVo8fx82nyiSUnDTmlIn9zxHGrgFtlTYDjuz31k0oJUKeatQW/gd3QncA0 i2EajexBSDMuuJg7EvCW3DTTN9v3wi0OLMIgPOjqYDsm+htGdTG4fe2On1H5vt09py7jjXvyhsLj2 UC2SBfouvb9jksELC417GNSM4BfPZsx0UCq1Z6Jxp22JkkzPOBMRc0EuIKn8u4SS7MPc0F1b/8apM hfr/h4o48QNRxUbO1x8ssuTjNyaZV9PLf0a/5lFOMBSJf8awzKR3Tfx+W66JRW4Hv3tgiJ/2lWV2Q /OhlNMRA==; Received: by zero.zsh.org with local id 1pKrmV-000AoA-IL; Thu, 26 Jan 2023 02:14:27 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:50171) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pKrlf-000A7u-Jq; Thu, 26 Jan 2023 02:13:37 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca ([24.224.136.10]) with ESMTPS id <0RP2008Z2K735210@mta04.eastlink.ca> for zsh-users@zsh.org; Wed, 25 Jan 2023 22:13:33 -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 Krldpbn1d6z6sKrldpe3vE (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Wed, 25 Jan 2023 22:13:33 -0400 X-Authority-Analysis: v=2.4 cv=bOzQYtyZ c=1 sm=1 tr=0 ts=63d1e1cd a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=wdP4a0lNNcBbQLDMVMIA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvfedggedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Wed, 25 Jan 2023 18:13:33 -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> <00818033-2566-52b3-33a9-62591a93d707@eastlink.ca> <394f641a-318d-4e87-4f9d-de54119b7dc7@eastlink.ca> <9b64443d-2d97-a4d9-0028-4b950c319c1a@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28805 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 10:34, Roman Perepelitsa wrote: > You can use [[ -z ]] for that. > for name in ${(k)parameters}; do > if [[ -z ${(P)name} ]]; then > print -r -- $name > fi > done One small problem with that.  It seems to print all the values alright, but ends with: "failed to find end of command substitution" ... you'd have tested it of course, so why that msg here?  Virgin shell reports the same msg.