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 20228 invoked from network); 25 Jan 2023 16:38:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2023 16:38:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674664725; b=g+JV8IcV1AsP/KHSzj0XQL30C9FeQfwqiRSyTZzTXWBrCx9iTmHnPv40SMm3/yIXjAZjdgxXbM N2N6oey9INAnBgLny1lrNP+uYJN5/Zwv7LmX4Nhje9QAw7IVxgBVwu/pEAA/znOl1UA0y9dp0v sCiNZFff2lm7n+/zEQ/Vig88cl1aeqoMhEXbE7/8BP8irrkWfzbX64rTr1FX0dZ2GYAOp4TbSl DWIR4HlPf/Sl9QNl9uAaXnPx1fyoDxlNr92TpwohB8nIeLn6cUPeYv+yw/N/LOM9Bc+CTpc2VV V/f6ofejHqcYLUW/7m8ZQlLyyNTXB1lZIrJttnnT+IRIMA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; 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=1674664725; bh=GOUFFYpP+h1uu9SZ7iN+C2/yLmF306t91Y2L92VNWTs=; 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=fJZ97hCnynxmc8eJgmnIPCOQiWqbU9SxWdf0U4uafXw8EZ3d14bwg9nE4phByLP3qQvR4PSvS/ xFBgHcVfasQauTFY1M9SjVJwlbtlgp5YyyicCGLOXmm57exaDBO8F+7l8DiodxZNueQphX+j2V IDpPBpEDUloJtSyp4wv41TyUEi1fOHJ1d3DUzmCoylX3rM9UFNqoxDL/ZSjx12dAxJNTVNZX/w XRaC4ns51BfbzwDcvWtZtxu7fZXM1knhZjQN77HBoRaK1f7OXHn8IaCthO7DTBezxIEt7vR/s3 tbzvUbWuOcRKeUfaQBJinluD4ckDjFtN17hF1lEL8B3A/w==; 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=bCbS9pYqjr7FrAq1lCYfH2bBT3+4QS16OpTP6QGYsPA=; b=Qa487nCiO253cbLUmgHxSftEX/ 3KIKePjvUyVLwHg4txM5KozfCgJ2VrA2QYvhqB3Z6XlPxlBTUWWiluuNxTyKW0HeMO7H5q7VkQI1S LcXBP9ucsh/BSFwk/OoYsQ2iykHRMezG1fBK58kaTtCAk9qO8PS2kmXiELU6SzfGI92vsKCk0zUhx wCitXkAX9UqYq5pdBeK4YsCfx6ELGEKLNTA+lDGcCfGhk4POIDO3hnhipbJnkt16CLpDmO7ZmoxEm SROT0YDcIf8aJUy09lBPfocAJjPLUXyEWwxSe40UJaOaOdpX8U7AYY4aOITBeyzhZAt7EYBUAsXao d9r7xPaQ==; Received: by zero.zsh.org with local id 1pKinM-0003iI-9x; Wed, 25 Jan 2023 16:38:44 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:48482) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pKimo-00031d-As; Wed, 25 Jan 2023 16:38:11 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca ([24.224.136.30]) with ESMTPS id <0RP100LGCTKWOPP0@mta01.eastlink.ca> for zsh-users@zsh.org; Wed, 25 Jan 2023 12:38:09 -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 KimmpaOPn6z6sKimmpdhwY (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Wed, 25 Jan 2023 12:38:09 -0400 X-Authority-Analysis: v=2.4 cv=bOzQYtyZ c=1 sm=1 tr=0 ts=63d15af1 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=2TaUr3ib3AGfb9Yyca4A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvvddgleduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Wed, 25 Jan 2023 08:38:08 -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 To: zsh-users@zsh.org References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> <3b93f68e-d090-15c0-c15e-a3d09d702f76@eastlink.ca> <07323898-9985-4e9f-8b54-c08fd8510fe8@app.fastmail.com> <08102bc6-b331-504f-fcd5-28fa3cdb0e2f@eastlink.ca> <00818033-2566-52b3-33a9-62591a93d707@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: <00818033-2566-52b3-33a9-62591a93d707@eastlink.ca> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28789 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: For purposes of cleaning up dead variables I sometimes want to list any unset params.  Before recent education I thought: $ set | grep -E "bg$" bg ... meant that bg was unset and now I know it's hidden.  (Nice if that was made more explicit.) So what would be a complete list of unset params?  This is close: $ typeset -mp "*" | grep -e "=(  )$" -e "=''$" -e "=0$" typeset ZLE_LINE_ABORTED='' typeset -aT CDPATH cdpath=(  ) typeset -T CDPATH cdpath=(  ) typeset -aT MAILPATH mailpath=(  ) typeset -aT MANPATH manpath=(  ) typeset -T MANPATH manpath=(  ) typeset -a compprefuncs=(  ) typeset -aT WATCH watch=(  ) typeset cc=0 typeset -a zzz=(  ) typeset OPTARG='' typeset -i10 UID=0 typeset KEYBOARD_HACK='' typeset -i10 GID=0 typeset zz='' typeset -aT FIGNORE fignore=(  ) typeset -T WATCH watch=(  ) typeset MATCH_FOUND='' typeset -T MAILPATH mailpath=(  ) typeset -i zzzz=0 typeset -a comppostfuncs=(  ) typeset -T FIGNORE fignore=(  ) typeset _execute_input='' typeset _execute_history='' typeset -aT PSVAR psvar=(  ) typeset _execute_output='' typeset -a z=(  ) typeset -a argv=(  ) typeset _execute_linecount='' typeset varis_switches='' typeset -T PSVAR psvar=(  ) typeset -i10 EUID=0 typeset -i10 EGID=0 ... but probably there's others. BTW, I very much doubt anything can be done about it, but I trust there's no way to distinguish between an unset integer and one explicitly set to zero?  Not that much will ever hinge on it.