title: (Linux) How to get filename/path by function name
body: <p>I have strange "autocomplete" in bash "_shells" i never had before.</p>
  
  <p>Before i never saw it.
  And now if i type "_she" and press tab in makes "autocomplete" > _shells</p>
  
  <p>By executing "$type -a _shells" it prints out</p>
  
  <pre><code>type -a  _shells 
  _shells is a function
  _shells () 
  { 
      local shell rest;
      while read -r shell rest; do
          [[ $shell == /* &amp;&amp; $shell == "$cur"* ]] &amp;&amp; COMPREPLY+=($shell);
      done 2&gt; /dev/null &lt; /etc/shells
  }
  </code></pre>
  
  <p>if i execute $_shells, nothing displays at all.
  I cant trace location of filename which contains this function.</p>
  
  <p>realpath _shells > no output
  readlink _shells > no output
  etc ...</p>
  
  <p>How can i get filename of this unknown function ?</p>
  
  <p>Thanks!</p>
  
  <p>PS: i should post it on SuperUser i guess ? Sorry about that!</p>