TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:751] Problem running scripts - Need Advice




-----Original Message-----
From: Joseph A. Heil <heilja@dbsource.com>
To: tclug-list@listserv.real-time.com <tclug-list@listserv.real-time.com>
Date: Wednesday, July 29, 1998 8:25 AM
Subject: Re: [TCLUG:751] Problem running scripts - Need Advice



>  What you really want is to include your current directory, that
>way instead of ". foo" , just run "foo".  The path then should then
>be this "$PATH = /bin:/usr/bin:/."  The "." should be the last entry
>in the path statement, otherwise you might end up running a custom
>version of a program when you might have want the standard version which
>would be found the the standard bin directories.
>

    Opinions differ on the wisdom of including "." in your path -- at the
very least, you should never include it in the root user's path, as you may
wreak any amount of unintentional havoc should you accidentally run the
wrong program.  For ordinary users, it's probably OK, but there are those
who believe that you should just get in the habit of typing "./program_name"
instead.

---
Eric Hillman
UNIX Sysadmin - CCCU
ehillman@cccu.com