title: Is it possible to view the "source" for a ksh function?
body: <p>Our ksh environment defines several functions.  The names of these functions can be listed using then <code>typeset -f</code> ksh command (or the <code>functions</code> alias).  Is it possible to see the definition (ie source code) for these functions?</p>
  
  <p>This seems like an obvious question, but I've tried all manner of parameters to <code>typeset -f</code> with no luck.</p>
  
  <p>As an example (on Linux):</p>
  
  <pre><code>$ foo()
  &gt; {
  &gt;  echo foo
  &gt; }
  $ foo
  foo
  $ typeset -f foo
  foo
  $
  </code></pre>
  
  <p>For some (but not all) other functions defined by default in the environment, <code>typeset -f</code> <em>does</em> show the source.</p>
  
  <p>Update 1: This is happening with Linux kernel 2.4.21-32</p>
  
  <p>Update 2: Update 2: Ctrl-V gives "Version M 1993-12-28 n+" - seems like this is quite an old version so might not have the fixes mentionned by Gilles below</p>
  
  <p>Thanks,
  Steve</p>