HP3000-L Archives

March 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Walter Murray <[log in to unmask]>
Reply To:
Date:
Sat, 25 Mar 2000 00:07:10 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
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

ATOM RSS1 RSS2