How to determine function name from inside a function

前端 未结 5 884
梦如初夏
梦如初夏 2020-12-02 04:24

If I have a Bash script like:

#!/bin/bash

f() {
  # echo function name, \"f\" in this case
}

Is there any way to do this? This could be us

5条回答
提交回复
热议问题