Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: debug functions
- X-seq: zsh-users 26510
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Subject: Re: debug functions
- Date: Thu, 11 Feb 2021 19:21:46 -0800
- Archived-at: <https://zsh.org/users/26510>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2021-02/CAH%2Bw%3D7aSqgOf3bjfCDn5eznzgTwU1MQ5f7Dg0Fuzd-b88zeq2Q%40mail.gmail.com>
- In-reply-to: <CAP+y1xBp3DmuRTYU0meOks1esgX9jpA8KMGWzLMsZ=mWWmOD2A@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAP+y1xC9h5nOC_TBApaPf_qYSUN4=vApbmVvVQ07TE=uh467Aw@mail.gmail.com> <CAH+w=7Y8O7e7Yy7bcK9fm1Yx_966L4g3LiKPxT_GOX9hxeGe_g@mail.gmail.com> <CAP+y1xBp3DmuRTYU0meOks1esgX9jpA8KMGWzLMsZ=mWWmOD2A@mail.gmail.com>
On Wed, Feb 10, 2021 at 3:04 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author