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 3583 invoked from network); 1 Nov 2022 00:56:09 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Nov 2022 00:56:09 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667264169; b=aK1JWEmZZ2oTAbdarsWeQkVzXS0w/IQFPIqCgaWJOHcvVn85AKqZ2KRuZRT6x5z/T1BBhxNrzV gTpz47Fx3bZDOg9iPEuGfIEM8riWYywEaFgAvTxFJr5To1J5c7GsPU/ukuPZ5myy9rtsJ5Rvso h5MnwQIXPRNXUXDbP8UBcd4ugKTg8qgL61sbtWXW6sfE1peENdV0DWu2kIpBFwBakZZXeRtPGw dmeEZb+lbS5O93Z6a57KZMce6vpfJrbUptfIqIQBk1lYv1M3tIDm/yD/pggJOb5t0RrqrcBY3Y yK43Vkbt+6+ZH5sq6Wbecby/fx73VSUKPWKUfoZsYnlN1A==; 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=1667264169; bh=bEIvJCO201G/w+ZctFDypJUl8kFVNORbXTT56kh4TeI=; 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=Dt+hP70fPOGPSVjfn0nUUn7JbxIX4v5k4PKN9IG6NMKb0R5jhDlK9GqDfsA6JPtjSSXHYbCqDQ yeWm5rMxHOT/424JBRHh2PVDLjHGbUgH9kOGaT9asncHpo4oq5SiPUGDK8e6e7wxyMAk5RC5Iv WdZHyJTFSjksgRoTY+1/kPmqfSRlklOZvpVSWFTgSs11TFsJTK9ikvUtE5urNi2q5pHpd8tlMN qMH1zW9xskZlZWtTnI4Zbf0xVz5nMzP2ETv0yhUZOQKgwFUHUYmv3ZZ2dktU0DhYJiNGbbNBoM 2qSUFuRwe8QSV4j+A0/zpYEtwRMbllW0LVzQKp4mVxu/Ag==; 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=IlKAs+tm4x6Y2pyleq5QvsbjGL9m0K3XT5Nu6hulfnk=; b=A170mBXpW++sb0XcPozz/m6rbR bbsoD5YoqOQb147brOqPnT5RTVWV5t7YCG1VjMf6/ek8eyAoEJLg4MECkOp9JcHm3+xWD0Wmb6CDR bG5svWZ4AZugjNUL1MTeC7RUeZWN6qQ3/fWnzCzCQ5pLm9tQz2guY6YLfHOxhadfdgw/FMhV+g7Rz TJCOF8DFFPfEjb/sGqGaxmpomzyg+yNS8NVU1t4733xlX/YDnDCK6Bg0vCH6PSf5zMt4FmN6ip3g4 KVeS1PWOM4ZBKNN+OFtRcvpreflLyTisAmBzMsSFt+g+Ej9DPgA738KxsrDJt9ltgNdQ+iVTmz42y f0/RmfgA==; Received: by zero.zsh.org with local id 1opfZY-0004fG-FL; Tue, 01 Nov 2022 00:56:08 +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]:33684) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1opfYw-0003yY-Q5; Tue, 01 Nov 2022 00:55:31 +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 <0RKN00GIR398XXC1@mta02.eastlink.ca> for zsh-users@zsh.org; Mon, 31 Oct 2022 21:55:29 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id pfYvoMZLPzeXppfYvouHfp; Mon, 31 Oct 2022 21:55:29 -0300 X-Authority-Analysis: v=2.4 cv=cYAU7FPM c=1 sm=1 tr=0 ts=63606e81 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=OGaSryVcV36Zrxp4i-cA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudeggddvlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Mon, 31 Oct 2022 17:55:28 -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> <77e57f37-7d6c-5ed4-5745-c424886bf16e@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28306 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 17:31, Bart Schaefer wrote: > > No. -m means to find all the names (in any hash table) that match a > pattern. -a means to show all the occurrences in $path of each name > (either literally without -m, or found in the command hash table by > -m). -m happens first, and then -a searches the path. That's a better explanation right there than in the docs.  I was only saying how I think it should work, how it *does* work is only now made clear. > > Whether a full path appears there depends on how the function was > defined. The only way you get the output with "... from ..." but > without the full path is if you source the function from a file in the > current directory (e.g., "source rap"). Ah!  so the full path information isn't even retained anywhere. Once it's in memory it doesn't matter.  But if I do this: 2 /aWorking/Zsh/Source/Wk 5 $ . $(realpath ./rap) ... whence shows me this: rap is a shell function from /aWorking/Zsh/Source/Wk/rap ... because the full path is actually available at the time of sourcing.  There is always a way.