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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4740 invoked from network); 12 Feb 2021 03:22:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2021 03:22:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613100163; b=DqlVwXwdlkFo7AKlt4O+j9XNpOja/nGqsbVQm/7ZiCS26neZWGlG5cIu4DJOlnyfB9AUuhrW+f lcSMat3+4/JKiuU1qDvth/YQLzkNIXzlnl5nWHXpM1KYPYyQ8bi5QZEkXqKdVq7VILuD7jAR4T Lki8fVwh0lw5377/9ut+zL0ZVb/DWMKKZb9VF6TcqjL0+K2ZuKmZO91ScjM70m1AlQEsYoymSd x8jCG644q5U/tLJGQkxiSLcy+w1lKsoDCzR1/sbwtgfqyk/jbWNQC5lOa5DQqG9E/fBtRZuaPs 4XvAPiHiaZgInL2hTBZbW5I2dPfQZYhwx3lNWmAxtgOqqQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613100163; bh=vfDqJOBanVmTzzyp+2sh0wNs+5Ewb0VwqloOEbaIU9Y=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=YgWRh7SQyQC+MEvrVKuuXf1Fdu5Qfa0U2Fw/rpjJrtxbyIC9lVA34fo7n+Vru8/0p5QIGi3k04 JqmzzFDNKQkcfPisQ1MKF4TumP11niCdvK2PFSklONwlKq7SVbI4vf5I2ZEoeyC/qQIiRufYOg mpLJPm3wq2dziQmuue85MQRutqEA2LaCAdi6bK149TStxARsZfiKNpdqcGFcaTmZJvLJ7heezy gaHoPwdPbT+o4z+zb+XdntcZ/X6+5BjtV9HJ5+xyfwAj1iwARmuIKwnsOrk/HNVDubY4Uf/4EN QiK4ZCIz+dV19aGFU5x5720FSuysxEr6fMEMZ4nbni64hA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=iWook2NPIww6hwg+8pYyOqBK3uGD8LFun7jqg5r8rgw=; b=SYp+Y82U+s8Ht0PzRuhIzWxsyC uKXGVWq6NiAWy1GERkpDucs7w9nkYLPuWDcRIOnQGYBJ/H569torqG1p3TCZiohHilM/oN/6t4opc VMStyLG5iJco56b2fLO3uzG+u3e/Q/hEcHpJrNS1Ed0WfqN0kCBOX+VJvaniwETuEhbwh5JGWGex/ cLyFrMy2SPMmzSlozzjbq+jn3eNBuavHKfup80Dwsv2qxRq9jlk+5i0ombwfGwVS3sDIL09YlDG30 CvOUfgHC6Fd4JYLU06+DCmynzGD9vXQHUqjEDZb+nDOPtrhJ1Tooq1k2kF+or/xwbLvuhBSiRGxI9 OJ+8rk9Q==; Received: from authenticated user by zero.zsh.org with local id 1lAP2V-000Cae-3M; Fri, 12 Feb 2021 03:22:39 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f51.google.com ([209.85.210.51]:39472) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lAP1r-000BcR-Iz; Fri, 12 Feb 2021 03:22:00 +0000 Received: by mail-ot1-f51.google.com with SMTP id d7so7236110otq.6 for ; Thu, 11 Feb 2021 19:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iWook2NPIww6hwg+8pYyOqBK3uGD8LFun7jqg5r8rgw=; b=ZAKjcIYN2u1sILsDOcVzHWRaPjpc1x1iqJ8GyotJ0ufrZjFZ1mu1Ad6FBnJYDNgM// iAzBkB0+bMFYAs3aLsIlLDEOkIiSvlwztnUm71pt9IkuD+pHfJ/azZst5gPwYQcP206e BAK4HWDtl0gorY/F92MqPergIC2YBCwJd6GI6VQxOm3qltCuEqfOmRRR5N49iwR7rDqa RXl6vz3rN0qlQ/JxOILSRQnQTGFRkvXMaGa7Yc5RwFyUCrI5OJSkxCgdtOceroLhhwNi bcL9vhrqX4oBsBP2kw4qLRXniFeashvYmdPzOmOR9EvD4vd/Ue+T0JJDPnKhxMVnARzW eIjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iWook2NPIww6hwg+8pYyOqBK3uGD8LFun7jqg5r8rgw=; b=NOoUmPoDT+cSg5xK0e1zZw5c/oC7g3G5CUnl1eqcVQO2etczgmy8SQQztCn0Zs+xsn /EQYghyuArQS87hjhRJUOuwpoorLeDtO+uSXKYPQDGUxyBREK+NuSRwNcUJjaZQL0LHi rmr5ANJes43Km7/elKjKirsS9jwPJ5ekHCa8C79WHpx4ur7tK1OwR0fTXDZFUXrWXSqY 9ayIHmi/9DEk2wAyRK5Ct1d39zHh2zOiYxNGFbMkWioLr6u1sK2P0UsvChzZ22Dq3h3p 3Bt9TH+Eob+gMCbsKnDhJgfDSqMSgzhfx3EWso7EJkmg5Hyrvq39bRgDLN93uylbjy40 ptxg== X-Gm-Message-State: AOAM531fTa+Jj/OQHUWGY7l7N3mlgvep5hCQRQzIcCao6FB7Zw44ss7V mMzdl/k7y3abn9YFLesFwtzLJxCDLPgKfkNXZ7ONSg== X-Google-Smtp-Source: ABdhPJy4VZbo7B+OI2Q0LQFpelRvvvSLqDwQ07LFDi6bO0wlE6ZF0ndGiLTFAnOHd0ZO5mDp3tANohr9twL7hxhV02M= X-Received: by 2002:a05:6830:2106:: with SMTP id i6mr717616otc.260.1613100117582; Thu, 11 Feb 2021 19:21:57 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Thu, 11 Feb 2021 19:21:46 -0800 Message-ID: Subject: Re: debug functions To: Pier Paolo Grassi Cc: Zsh-Users List Content-Type: text/plain; charset="UTF-8" X-Seq: 26510 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: Archived-At: On Wed, Feb 10, 2021 at 3:04 PM Pier Paolo Grassi wrote: > > I was afraid the function that call itself is the only way to go here, thanks for confirming Actually, if you have the current development version of the shell you can do this: function_name () { function -T { # original function body here } "$@" } The trace will show '(anon)' instead of 'function_name', but otherwise it's what you want.