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

Re: [TCLUG:6938] More /etc/profile.d



Quoting ^chewie (chewie@nerp.net):
> Are you "sourcing" the scripts in your profile.d directory, or are you
> simply executing them?  There is a difference.  If you simply execute
> a shell script, any environment changes you make are local to the
> execution of the script itself.  The script is executed in a separate
> shell from your login.  If you "source" the script, however, the
> script is executed in your existing shell.  Any changes you make to
> your environment is performed to your existing shell and saved.

I am sourcing the files. Well, dropping them into /etc/profile.d on a RedHat
machine and naming them .sh or .csh get them sourced.

But I still cannot alter the path. :-(

-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9