Subject: Re: .profile
To: None <netbsd-help@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-help
Date: 04/14/2003 08:13:37
On Mon, Apr 14, 2003 at 02:33:12PM +0930, Ian Grant wrote:
> 
> Hi there again
> 
> I've discovered that my .profile is not being read when a shell is
> spawned. I'm using /bin/sh so why would ~/.profile not be read?
> Or perhaps a better question is where do I set my environment variables
> for /bin/sh ?

How/where are you spawning /bin/sh?
Only 'login' shells read ~/.profile the rest just inherit the parents env,
If you are runing xterm you need to do 'xterm -ls'
(that ought to be the default for window managers running xterms, but...)

	David

-- 
David Laight: david@l8s.co.uk