ehe, not so stupid ;-)
I think it happens to a lot of people (I've done exactly the same) because:
* the current dir is not in the path (while it is the case under DOS/Windows)
but more vicious is the fact that
* 'test' is a valid command that does not output anything.
and thus you end up running 50 times /usr/bin /test instead of your program, trying to change the output doing all sort of things without even getting an error...