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.