title: Shell script runs when using the command: ./script, but not the command: script, where PATH=.:'usr/bin':etc
body: <p>I'm running Zsh, with my current directory in my path, but the script doesn't run when used without <code>./</code></p>
  
  <p>Read these statements executed in my terminal to understand the context (the <code>»</code> is my shell prompt character):</p>
  
  <pre><code>» ls
  Makefile node_modules  package.json  README.md  src test  tst
  » echo $PATH
  .:[all_my_other_directories]
  » cat test
  echo "test";
  nodeunit tst/
  » ./test                                                                                                                                               
  test
  OK: 2 assertions (1ms)
  » test
  » which test
  ./test
  </code></pre>
  
  <p>Notice that on the <code>which test</code> points to the right spot, but <code>test</code> doesn't run it.</p>
  
  <p>I know that putting my local directory in front of my path is a bad idea, but I've changed the path to having <code>.</code> at the end and it doesn't change anything.</p>
  
  <p>I would greatly appreciate any help!</p>