title: Get Current Script Name While Was Calling from Another Script
body: <p>In KornShell (ksh), I have a script that calls a list of scripts. The callee script needs to know its file name, so that it can generate unique configuration (or anything should be unique).</p>
  
  <p>The problem is variable <code>$0</code> always points to the caller script. For example, we have two scripts:</p>
  
  <p>caller.sh:</p>
  
  <pre><code>. callee.sh
  </code></pre>
  
  <p>callee.sh:</p>
  
  <pre><code>echo $0
  </code></pre>
  
  <p>When I execute caller.sh, the callee.sh print "caller.sh", not "callee.sh". So how can I get the script file name of current running script?</p>
  
  <p>The script is running on AIX servers, so bash is not available all the time.</p>