[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PATH variable--where is it?



On Tue, Oct 30, 2001 at 12:00:40AM -0800, Osamu Aoki wrote:
> So this /etc/login.defs defines PATH provided by login.  Then
> /etc/profile is persed by shell and export new path, if it is defined.
> 
> Deeper question is "What is a PATH before login?"
> 
> Specifically, What is PATH for /etc/rcS.d/ scripts?  Some scripts
> (modutils) defines PATH inside.  Are these hardcoded in init?

They are hardcoded in the scripts :-)

> I know $HOME in these init script are not /root but /.

Actually $HOME is just undefined, and concatenating nothing
with something gives something.

eg:

$HOME/path/to/stuff when $HOME is not defined gives
/path/to/stuff

-- 
bjb@achilles.net



Reply to: