Carl McNamee ([log in to unmask]) wrote:
: I am curious about something that I have been running into in the posix
: shell. Why do I have to qualify the name of a script to be run with "./"?
: If I have the script "test" in the directory "/SYS/CARL/" and I am in the
: CARL directory I have to run the test script by typing "./test". Why can't
: I just type "test" and have it run?
It might be because your path doesn't include the current directory.
Or it might be because "test" is a Shell command. That was my first
shock when I migrated from MPE to UNIX fifteen years ago. I had been
using "test" for all my quick-and-dirty test programs, but that's a
command in UNIX. So I started using "t" for everything. When I went
back to MPE five years later, I had to switch back. Most of the
systems I used had system-wide logon UDCs that contained
"FILE T;DEV=TAPE". Sometimes you just can't win.
Walter