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.3 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 29860 invoked from network); 1 Nov 2022 00:04:06 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Nov 2022 00:04:06 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667261046; b=mhJmogCsbwmau5oXiXxmc+pX4Tnf/ol0Rgp1fmnZ7gUCsZWI9YX1/6GxfsChE0iMAGm5Wpnk3A z2aTpXPeaL8UkAnqbw0zb6sTjaEvwrezrwfmK7800H/YDJxIUPtc9JmsuuJOsLNt/R6sNNXcBs jIZyKXYLgcBSO1bd59/WRT+6UHE9m0YPUv9FSWjzOiLgWrNAEmf2x6aAYXEgPtjYQJwMSHlW27 UrUSeFeKvG3iYhjsw61GiLXTIFFaQTUQ9He8SOrtaARK4ObAge12oAimUSa5pjDE2CzEWlLz97 spyfKcflN2E7NbG0EhmZNCbmlGlPVruMGr9kpo5JGawV1Q==; 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=1667261046; bh=ugNgh+UaaZ0EA8Dgh92r6dOwPRVwL4gV2MXq6hNFZqg=; 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=gKt9RYwYDc5xte8P1znuIiHaIapB3GMKc/STVKF8SWI2X77yLmKGG9nK9uQ5QKdPE5mqme5M+7 jt7oLmX57Rjy7NvoceXD0Q/HTkx1oTc8AglsdU4/Y57JIlyaRXfEZ0ILb8ZxH4VkDqB6o2T3oD U+0jxmnJfePR1ec5yk7wZG+Oj21erV7vIIgBh24l47XnFKohkrrYnN4qE4Dl8Z5f0Zb2qNaTwY K5vYmnKg2XBcIXWPDXVuZsJbFZ26EmCoiaAa4RwS73TNFn0DgR4lNaqPiLafmmCINeigCBJ2Cm A3IgDMk2iVj5TUfuuUJCB17YXgHrLRKANXN3WMD/DB5tjg==; 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=t3bwMQwB5Q3xW0Z5lxUbJ1HmChj/Vgi8xheIWz0CCpg=; b=JuWIdRtrg8VfPUyZJW5yXv02Wq tFdZmNuG078tgcZTuBCF23cxjbrPEFcb87bU8qQHSYDGpZ61lJRakWQnBiHQlB2qLaPVi3wsP65nb n3A/VNB2C7PN7dv+WNv7DGIJG0cl9weqzu0dvOah0+e5NUSfT5Matm+zJkq3V4l3XIxkMhVGfoBh7 Qysy4T/ZpYJdqSWtV3NBdIQcdEqIJEA/yEwvPflnoEokeEx1lIAnSpA7VjWG1nkmDWobkDgDF2pZl ZhlGpFbq3Pfl56GFEpUvQS+65sP3U88Ctjt64YH/R9aqyU5g/XjHqL5YuwLGBBCEGiql7wKY4aeWK hv7YaqMQ==; Received: by zero.zsh.org with local id 1opelB-0001EQ-PK; Tue, 01 Nov 2022 00:04:05 +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]:47626) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1opekl-0000WY-Fh; Tue, 01 Nov 2022 00:03:39 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RKN00GO06LEXXE1@mta02.eastlink.ca> for zsh-users@zsh.org; Mon, 31 Oct 2022 21:03:38 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id pekjoaGwTXZnZpekkoIhgG; Mon, 31 Oct 2022 21:03:38 -0300 X-Authority-Analysis: v=2.4 cv=I9+jBvsg c=1 sm=1 tr=0 ts=6360625a a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=8hc9Six6wCpSVKCqYTwA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudeggddulecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <77e57f37-7d6c-5ed4-5745-c424886bf16e@eastlink.ca> Date: Mon, 31 Oct 2022 17:03:37 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: whence output varies with dot vs. realpath in $PATH Content-language: en-US To: zsh-users@zsh.org References: <8cfe03ee-cddc-f70b-0c62-b506e49dfe58@eastlink.ca> <249024aa-ae57-e970-ccf1-1d3c8a391417@eastlink.ca> <4f4fb806-fef1-52ba-2559-f2629c823939@eastlink.ca> <1f246a94-944c-cbc3-27af-43a34b90151d@eastlink.ca> <128a1ff4-1af4-4d5f-b2e9-754daa6d9016@app.fastmail.com> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28304 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 2022-10-31 16:38, Bart Schaefer wrote: > It's an archaic synonym for ".", included for backward compatibility. > See POSIX spec. Not me!  Nothing I need worry about.  Strange tho, if you want dot on your path then say so.  I'm glad it's archaic, that's sloppy magic.  BTW as to '-a' and '-m' they sure don't get along. I have a few examples where they seem to try to cancel each other.  Seems to me that -m is an expansion of -a: show all matches AND extend that to wildcards.  So -m subsumes -a. > If you don't mind the overhead, you can muck around with $path in your > chpwd function to force the full current directory to always be there. > Na I'm good.  It's just that I want full path disclosure in my function cuz I need the full path later on.  My crude search (not prettied up yet) seems about right: Searching for aliases, reserved words and autoloads. Then searching the path for regular functions, builtins (no path), and executable scripts or binary commands ... Found 9 match(es): ACTIVE: RAP is an alias for echo howdy              RAP is /aWorking/Zsh/Source/Wk/RAP ACTIVE: RAp is /aWorking/Zsh/Source/Wk/RAp ACTIVE: RaP is /aWorking/Zsh/Source/Wk/RaP ACTIVE: bwrap is /usr/bin/bwrap ACTIVE: rAp is /aWorking/Zsh/Source/Wk/rAp ACTIVE: rap is an alias for echo pard              rap is a shell function from rap ACTIVE: select-default-iwrap is /usr/bin/select-default-iwrap ACTIVE: _trap is an autoload shell function ACTIVE: trap is a shell builtin ... it's all there and where we have a name conflict I know which twin is active. BTW, you know what would be sweet, is if: "rap is a shell function from rap" ... if there was the option of having that displayed with full path.  Throw in a case-insensitive option and all the work I've done in this function will be mostly obviated.