From owner-freebsd-questions Wed Feb 27 16:38: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id 5CFD137B402 for ; Wed, 27 Feb 2002 16:37:59 -0800 (PST) Received: from lungfish.ntlworld.com ([80.4.0.215]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020228003757.PRIZ7000.mta06-svc.ntlworld.com@lungfish.ntlworld.com>; Thu, 28 Feb 2002 00:37:57 +0000 Received: from tuatara.goatsucker.org (tuatara.goatsucker.org [192.168.1.6]) by lungfish.ntlworld.com (8.11.6/8.11.3) with ESMTP id g1S0d1j12103; Thu, 28 Feb 2002 00:39:01 GMT (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.11.6/8.11.6) id g1S0d4f48381; Thu, 28 Feb 2002 00:39:04 GMT (envelope-from scott) Date: Thu, 28 Feb 2002 00:39:04 +0000 From: Scott Mitchell To: =?iso-8859-1?Q?Rickard_Borgm=E4ster?= Cc: Mike Makonnen , freebsd-questions@FreeBSD.ORG Subject: Re: System-wide environment variables Message-ID: <20020228003904.A48231@localhost> References: <20020226030324.4a94cc33.doktorn@realworld.nu> <1014689577.677.0.camel@blackbox.pacbell.net> <20020226025447.GA21944@dan.emsphone.com> <1014696241.677.5.camel@blackbox.pacbell.net> <20020226051544.GC1931@raggedclown.net> <1014735740.677.25.camel@blackbox.pacbell.net> <20020227233316.42430b8e.doktorn@realworld.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20020227233316.42430b8e.doktorn@realworld.nu>; from doktorn@realworld.nu on Wed, Feb 27, 2002 at 11:33:16PM +0100 X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 27, 2002 at 11:33:16PM +0100, Rickard Borgmäster wrote: > On Tue, 26 Feb 2002 07:02:20 -0800 > Mike Makonnen hit the keyboard and punched: > > > > Any such program will inherit the exported environment > > > from it's parent process. Examination of /etc/rc will lead > > > you to see what they will be for startup daemons and such like. > > > Examination of the non-interactive behaviour of a shell startup > > > script (if one is used) will tell you what that environment will > > > be. Use of the "env" command may also help. > > > > I can't remember what he originally wanted this for, but the solution > > might be to put whatever he needs this for in a wrapper script. > > I just want to set a few variables for all uses, no matter wether > they login from shell or by gdm. Such as: > export PS1=$'[ \\u@\\h:\\w ] \\$ ' > > Why do I need a wrapper? login.conf(5) is probably the right way to do this -- check out the 'setenv' property. I'm not sure that gdm groks login.conf properly though... kdm certainly doesn't, although I do have half a fix for it that I must finish sometime. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message