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 21699 invoked from network); 31 Oct 2022 22:59:57 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Oct 2022 22:59:57 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667257197; b=rPi9QYCfsMwzqvMg5MMIybMkO+avzHrsETSf2tRWn7FRa8/OoJIMd4UuL8+vvzRKIyy750j7wL CItH4/PEwvMC9XU4jjwd0UyVpM/ElTkbz0Y5DKRaPdk29WhK8G9t0hQYU7pHK+ssklltokkI8D qVgbFdoQDBNjIWpEQ1aFyL5pHdjiFPQPYfU1Yq3gZD0efcGbyjbcEgKP6t0H6quRxSt2YJMPNF xK/Mv2cCx3ExRGjdpEl77I3ZfbKO80UI0l0y6xNO4dbwM05314moOSW/D45IzOdZvVKjet2cE4 y2kme0LWliCjkeEuqTomVP48y18Vj5RPF0avKB/oYwyKxA==; 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=1667257197; bh=EU0o5wQmPwOJJQZqQ0V+twf6i0bJNNjSHJ/Exnc0yGo=; 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=ohIachxidW9raXNO/QwUMtaSwmJdZD3gn1V2Q1j/mLYvyKoqK0TpTcKjBSXQF/agW+i02HASKm DcxNR2a4fq0absJD0oCO8NaYczZvbyBIv0D+mAzcBZJYEpgXs/fHdRMA+BU1NgUAhvi/y5Dubh 9CZD9sCM59eAlGfsJKklBo8cQMTcaEix6v46m4Te0geZPJc7LJYRqWzvDgeERGtT98hXhsKwRZ xM2zsI4nSM64QdT9pRq1rnUPFzFC5qeKkVri/8EDIZsWyWytf0DSONDy3OrzMzI9aAoL0dseDG A2Yh5Uyyk2TwsoV/+ukjdk2XalFbVrCldwnlL8A/ivjdlQ==; 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=5sT58LHlWpJQQYXrhBUjxhSJn+vU6J+wtyuoVcaCK9o=; b=C/APgVcHM7z5ihaI4qjV4A24uN MXWdTq3fPKXXB3or98Lz6W1DpHQBuBvGSZNsPYJKIrgekf97q7TYRq9wCa9spQsJsKIpORwVsDCQ5 xcwi39UYlbQDvYU4YgcqVNZ4FYhrMoWAT+ZAufw0Xl4jbVhgpgrs4xRgAEJnrYopM8wtPq+vJg/VL EK1wiY43wVYUj7GJ1tp6i4d7WGlVryeV+0O3Z/JlycfARd7kqTjCMwKqBZIbG3cZEP++CBkSdcJJI RaZVV3x6pKYwzHhVl+Z8/ccYdDi9AtthRRgd4Uo4yyWlbs5lBAClDWqPr9WEQ98j86kKRagyRC88i o6JTuhiA==; Received: by zero.zsh.org with local id 1opdl6-000H7f-JX; Mon, 31 Oct 2022 22:59:56 +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]:51556) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1opdkP-000GPp-3j; Mon, 31 Oct 2022 22:59:13 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RKN001AI1W05YU0@mta02.eastlink.ca> for zsh-users@zsh.org; Mon, 31 Oct 2022 19:59:11 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id pdkMoMJgyzeXppdkNouEhX; Mon, 31 Oct 2022 19:59:11 -0300 X-Authority-Analysis: v=2.4 cv=cYAU7FPM c=1 sm=1 tr=0 ts=6360533f a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=gir0-LH0AAAA:8 a=Y-LV5rvuBpiYiUHQOHQA:9 a=QEXdDO2ut3YA:10 a=aLewGyoHDmJ4ULJHWpSz:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudeggddtiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <1f246a94-944c-cbc3-27af-43a34b90151d@eastlink.ca> Date: Mon, 31 Oct 2022 15:59:09 -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> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28297 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 14:18, Bart Schaefer wrote: > On Mon, Oct 31, 2022 at 7:57 AM Ray Andrews wrote: >> It's the -m option. If you ask for a pattern match, "whence" rebuilds >> the internal command hash table from the path and then does the >> matching against that. However, "." is never used when loading the >> hash table because it would become invalid as soon as you change >> directories. If $PWD is actually in the path, then those commands DO >> get put in the hash table, so whence reports them. That can be in there literally?  I'll try that.  But wouldn't the same reasoning apply as with dot?  Anyway I get the point, you can't rehash at every directory change. > This should > probably be clarified in the documentation -- whence never does > globbing on actual file names. > > You don't see this as a persistent condition because you're running > "whence" in a subshell with $(...). > > The "zsh is zsh" output means you have an empty path element, e.g. two > consecutive colons in $PATH or $PATH begins or ends with colon, and an > executable or link named "zsh" in the current directory. > > 2 /aWorking/Zsh/Source/Wk 1 $ echo $PATH > /aWorking/Zsh/Source/Wk:/usr/local/bin:/usr/sbin:/usr/bin: > Thereyago, I'll kill that trailing colon.  Still, it seems like something that should be ignored.