Hi, Black Rider wrote on Sun, Jun 14, 2015 at 02:48:17PM +0000:
> I have noticed that the ksh and sh manpages don't make reference to the > file /.profile, which I understand to hold the default shell variables if > the other source files listed on the manuals don't exist. Sorry for being late to the party, but as nobody clarified, better late than never. The .profile file in the root directory isn't used when other initialization *files* don't exist, but it is used in place of ~/.profile when the $HOME *directory* does not exist. That's an obscure corner case that i don't think needs to be documented. Besides, it's not even really specific to the shell. It more about login(1). If your home dir doesn't exist, you get HOME=/ - and that's about all there is to it. Yours, Ingo