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,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20564 invoked from network); 25 Oct 2022 15:48:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Oct 2022 15:48:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666712917; b=PpCkn+HuY9LVYvlTm/sNZxUF0Zmvg192YhEpra3p8MQwqLqen7EaC3SM1MX3va/5OB31QV2Zxb se7kLVlJ5v/bRJtnU2gpARVjGb0MyujCanxJC1hcavKSPuTHW5BRQ3fLCYC8xe1L4RoGWM2TKS fB8FSflFOdmoJTo/+l2w8gTcQ6XnEEyCQXcbO2LDI31kWpzqS6wrgM6xgYDWKoSxaTN/RsI7YZ gwQJ00glv7LBTOt+s5LxAolV4q6r0yVUeOyp6l/WW538ZIR5X44ICZXzSv8TxJdtcaN0ubWs5+ 3oShoPh53LlDc5ET+7UB3Z+0yJI5gpvXlosUGHtwjvJHJQ==; 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=1666712917; bh=vV8ygl/dYvXI4Awe9lJR1Rsc2ai+ZWx+o1ASSfl7OyE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:From:To: MIME-Version:Date:Message-ID:DKIM-Signature; b=JSc5pAkdFVDw8Ib0w+5fcjcON7KOPLogGvrn0NeW99Wtu6Z45wX19J5cbD+a84mdIzazr8xKnj JAnr6ssVy58O0qIe+HeGCs0bvAdTaOouAiK3U5G45DHHGmcU8wLnY6FSrZkA7D2Oj/D6XlUhjv vuE5jwoaqUnezIUUsBRQ4XKdyap/MTY7h2zNMwtkFFv2xshJFKHyjT57PzdC/yeSQ7io3Floma udY6KC48WvenH1FV/9qx5QM+uT1iJvoQfImeAHynw/xzWT9rg6mzlH5dTzlFnm5CALzKe1nOe6 T697kgo9KynJxcgsA76GXSVBCSzm2TyYo2N1Atoz8PTQCg==; 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:Subject:From:To: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:In-Reply-To:References; bh=PA3T/ZNkyB6NR3RPq1S63Ey+4lwj2uinV8U3PxUJyBQ=; b=PFYP5kku1kEeZLca5Up8gK5B2O 6MNR75kQOfQWUy5p5+ISULEnMtCMhwxlKEXXZhelcEecutxIdibq1JQomwCn42LYdT0oasIHD9zhS VHrKMDhSPQ/0uNe06HyWgdKSUOlwLs/hzXjIlXe6dMinfdi4Ib/fm72VhlvuaZmQyISYSobE92plb +Mcw9R19ijqKvnSmf79PrpiU26M8foHmdmaH3mjjzKMfHGbIr96nbGutrlH/CxTpSpSMO0Kl1nOKE FbQarNujBuAiqdXXtjOejz4wxQkx5uxoF+KmuKd6DlC5KLJLFriPDQ1V26DkntHTndEG6/2wj1XTg OmdXgxRA==; Received: by zero.zsh.org with local id 1onMAN-000NAu-03; Tue, 25 Oct 2022 15:48:35 +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]:39018) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1onM9Y-000MTz-GD; Tue, 25 Oct 2022 15:47:45 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RKB00F7G5LPUPX1@mta01.eastlink.ca> for zsh-users@zsh.org; Tue, 25 Oct 2022 12:47:43 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id nM9WoLPBS5mARnM9WolcOe; Tue, 25 Oct 2022 12:47:43 -0300 X-Authority-Analysis: v=2.4 cv=J81vUCrS c=1 sm=1 tr=0 ts=6358051f a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=ZSSzJgtS-wVop4z-6B8A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtddtgdeigecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfvffhufgtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepveehudegteeiveevieeutefhffelheekueeghedthefgteejvefhgfekhfeigeffnecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: -100 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <04b0ce6b-be24-66f0-44e6-0183280e19cf@eastlink.ca> Date: Tue, 25 Oct 2022 08:47:42 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Content-language: en-US To: Zsh Users From: Ray Andrews Subject: priority of execution Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28266 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: So far I'm aware of these categories of actionable entities: alias, autoload, builtin, function, executable script, binary. Any others?  Or any other discriminations possible within those categories?  IOW, what's the total list of species that whence might report?  And when I have a complete list of such species, what's their precedence?  I believe aliases always come first but in case of name conflicts I'd like to be sure who has first go. And: $ whence -v declare declare is a reserved word $ whence -av declare declare is a reserved word declare is a shell builtin ... isn't the main point that it's a builtin and thus it's a reserved word automatically?  I'm not sure that's correct, but it seems to me that the name of a builtin must be protected so I'd expect: $ whence -v declare declare is a shell builtin   # Which is what I really want to know, and that it's reserved is redundant.