On 8/9/07, Darren Spruell <[EMAIL PROTECTED]> wrote:
> ~/.profile overrides /etc/profile.

Yes and both are processed.

> $ echo 'var1=a' >> /etc/profile
> $ echo 'var1=b' >> ~/.profile
> $ /bin/ksh -l
> $ echo $var1
> b

Of course, because .profile is processed after /etc/profile. Variables
set in /etc/profile can be overridden by the user in .profile so
setting the global defaults in /etc/profile works fine.

---
Lars Hansson

Reply via email to