title: Get function name in KornShell script
body: <p>I'd like to get the function name from within the function, for logging purposes. </p>
  
  <p>KornShell (ksh) function:</p>
  
  <pre><code>foo ()
  {
      echo "get_function_name some useful output"
  }
  </code></pre>
  
  <p>Is there anything similar to <code>$0</code>, which returns the script name within scripts, but which instead provides a function's name?</p>