title: Permission denied error returned when i was expecting command not found
body: <p>In a folder that contains the file foo.txt (but any file will do, with any contents). When I run <code>foo.txt</code> i get the error <code>command not found: foo.txt</code> this is expected as its not a command its a file with no execute permissions set.</p>
  <p>But if i go into the parent folder and then run <code>myfolder/foo.txt</code> I get the error <code>permission denied: myfolder/foo.txt</code>, why is this? I was expecting the same <code>command not found</code> error.</p>
  <p>Many thanks</p>