title: Executable Unix script cannot be found by which command
body: <p>I have a Unix bash script written by a former teammate that must be in my <code>PATH</code>, though I can't find it by manual inspection (see below).  I can however execute it anywhere by just typing</p>
  
  <pre><code>$ my_script
  </code></pre>
  
  <p>I would like to view and edit this script. However, when I try to find it via the <code>which</code> command, I get a blank response. Return code indicates an error:</p>
  
  <pre><code>$ which my_script
  $ echo $?
  1
  </code></pre>
  
  <p>And yet, I can run the script.  I manually combed my <code>PATH</code> and could not find it.  Honestly, I have not encountered anything like this in 20+ years.  Is there any other command besides <code>which</code>, and/or ways such a script could be hidden?</p>