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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22727 invoked from network); 12 Aug 2022 18:44:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Aug 2022 18:44:14 -0000 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:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=e+G1vhSuDlWin9lJBT1zx5c5gSfw7eel46L+EsASQ8k=; b=VGloJvaG0pnNHS02HvkgFMEXQ4 jhKhAKJXz/9PeaEY49Q4WqigYFZzLz79LbVwf2wa2ZSy9c6q0/o6yI+C6v4fLh/E09N76QOjOTPPM egZFiwFzQcd+tii/8OaPc0bbxz+pH1UO1eiI6zUjyqRqn0dYdohg0ANO6BDR/PSu0y9PJgXIMK25j Qbz4mPQgTS/xDyqEPEWND+F5yR5K2tciuNXgP8xk4kr6ibBdRxtwavA81YR6NwIBYVLR/FQlcjABu y2gd71ZynilNzpzAN19rm+0dGUvXmCYevZqtDAa3INMnXMu9eQV0Lqw4oJhMwI+XTtM3oMvkjhY9a CKav8dUw==; Received: from authenticated user by zero.zsh.org with local id 1oMZdk-000IQ5-Q8; Fri, 12 Aug 2022 18:44:12 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oMZcs-000Hg0-8d; Fri, 12 Aug 2022 18:43:18 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 51FB827C007D; Fri, 12 Aug 2022 14:43:16 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Fri, 12 Aug 2022 14:43:16 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdegiedguddvkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpefn rgifrhgvnhgtvggpgggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqne cuggftrfgrthhtvghrnheptdethfevgeettdfgueefuddtheefjeehffffuddvueekhfet ffdvtdfhveeggeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheplhgrrhhrhihvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqddu udehudekjeejtdegqdduudelvdejfeekhedqlhgrrhhrhihvpeepiihshhdrohhrghesfh grshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D6BBA31A0062; Fri, 12 Aug 2022 14:43:15 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a Mime-Version: 1.0 Message-Id: <4369c556-7ccb-4866-8e69-9d829afc81c3@www.fastmail.com> In-Reply-To: References: <64b57144-d4af-4708-983b-0bd202557bbd@www.fastmail.com> Date: Fri, 12 Aug 2022 14:42:39 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Zach Riggle" Cc: "Stephane Chazelas" , "Daniel Shahaf" , =?UTF-8?Q?=C4=90o=C3=A0n_Tr=E1=BA=A7n_C=C3=B4ng_Danh?= , zsh-users@zsh.org Subject: Re: Overriding "builtin" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 27948 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 Fri, Aug 12, 2022, at 3:57 AM, Stephane Chazelas wrote: > On 2022-08-12 08:12, Daniel Shahaf wrote: > [...] >> =C2=ABunset 'functions[unfunction]'=C2=BB, provided (zsh/parameter is= available >> and) someone hasn't created an unset() function as well. > [...] > > Or the standard "unset -f builtin" > > Or functions=3D() > > (or exec zsh -f) > > Or > > builtin() { > echo my builtin wrapper > set -o localoptions -o posixbuiltins > command builtin "$@" > } Or ''unhash -f builtin''. I (perhaps overzealously) interpreted the original question as asking for a method that is impervious to interference from *any* function (and maybe alias?) definition. But if you've broken your shell so hard that *none* of these suggestions works, then, as they say in the IRC channel, you get to keep the pieces. --=20 vq