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,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4427 invoked from network); 12 Aug 2022 07:58:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2022 07:58:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1660291104; b=Af8WVoVOFJkhS2S2YUFH8CmYE1fLNotwfsOv8KaNtYnd7XrFSmKxQc56m5qb5m1teQY8rvuC1v NQjY20/33SsKipesLu/6UysD824XLH6fEU3NGTxTEvpgeoCrhvSP2jswrz+cc+gNXSpAwEPo9Y uJBaF8mOiCxwWya4mcCPwQ2gFWuYfCqEy54i9fkQObFbrXhBRz1I3WGZ1YxQB9CGi7dgRcXH// pCVKWa9tbV/MTZ2mQpPAxuRdy1TMBI6yJo+hjn56FzJiSyiR8BLe+NtJlPQwi9iHr1AvRVT/F9 Jjk+3roMK99peFoifO3nEMV9HmtZ1sW8uETzVn0d7u7HPA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay2-d.mail.gandi.net) smtp.remote-ip=217.70.183.194; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1660291104; bh=O++/pmOxxa4N19GE+KMEXpnjfLt7k0/8Mqvs0Cu4f6s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:DKIM-Signature; b=CpiBTD6sRcH67sMMjs7X6e+6/COgnNoVpZ/7c7Za2dP4Q1XvlhvoATuLzjib3NXuLGGpZ+1lAr aWkNLWcICc5i+iitWZJrLxd54ZRn0gdXCnpCK22mak+nvdpMLuPYqQba9+DpGrnk958CHCttg2 9+n7XogHWUFLGtPVj52D+X2tb02YfUxrPfmlUhFQXAkZwy/ft5SeG5PDdyyQM01CznSeaE/vw2 GpLrTGXD1I+7dMczEGFWj/LYhjbRVbpt4Ct1EHLf3OBRnvq7atmyoYHh3+srHjVVqf1g9Xi5aU NlOY3gbSoEIY2jovbWpO2QcqtRlJaEvFW9S2xFzhxR272A==; 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:Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=mD3tS7yEzggaBwAAGnNIJNFtmzGf4SczuBqON0XEIWU=; b=EoZbbWCf3EtX9a8gVJJNqYDA2V 1dP22LiXQ+hOZt6Q3v7prIGjlJCveu3zW0NBEgBNwYsEmFdyRRBSQrQRCQ2R2TpJQ4ctVBVUTosYj IClZt6q+6fpqYV/oJiAV0nTWOr9kFApRZsg3HFMU7TTtsUziI19yQ/ksGL3MlJ3nHNlWwXULBYNsb ssDGbQ4mURHW7tzXMfTR6QTDhCnhomLrLWAPvbtq9ncNfRITAFwpWP//MxNZM1/GFo+5gu953MibV 3clNhiX/TIOIg8VRer+VD5I8Z47wqFeY4cORw18N0IbEAc1AV5STxUeTVODXmtvyuHWIZtaVbHrxb QxPpzfFQ==; Received: from authenticated user by zero.zsh.org with local id 1oMPYm-000OJB-EJ; Fri, 12 Aug 2022 07:58:24 +0000 Authentication-Results: zsh.org; iprev=pass (relay2-d.mail.gandi.net) smtp.remote-ip=217.70.183.194; dmarc=none header.from=chazelas.org; arc=none Received: from relay2-d.mail.gandi.net ([217.70.183.194]:61339) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1oMPXl-000NXr-Dw; Fri, 12 Aug 2022 07:57:21 +0000 Received: (Authenticated sender: stephane@chazelas.org) by mail.gandi.net (Postfix) with ESMTPA id D473440002; Fri, 12 Aug 2022 07:57:19 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 12 Aug 2022 08:57:19 +0100 From: Stephane Chazelas To: Daniel Shahaf Cc: =?UTF-8?Q?=C4=90o=C3=A0n_Tr=E1=BA=A7n_C=C3=B4ng_Danh?= , Zach Riggle , Zsh Users Subject: Re: Overriding "builtin" In-Reply-To: <64b57144-d4af-4708-983b-0bd202557bbd@www.fastmail.com> References: <64b57144-d4af-4708-983b-0bd202557bbd@www.fastmail.com> Message-ID: X-Sender: stephane@chazelas.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 27944 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-08-12 08:12, Daniel Shahaf wrote: [...] > «unset 'functions[unfunction]'», provided (zsh/parameter is available > and) someone hasn't created an unset() function as well. [...] Or the standard "unset -f builtin" Or functions=() (or exec zsh -f) Or builtin() { echo my builtin wrapper set -o localoptions -o posixbuiltins command builtin "$@" } (though that affects the behaviour of the builtin called by builtin. -- Stephane