From owner-freebsd-questions Wed Feb 27 17: 0:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mta07-svc.ntlworld.com (mta07-svc.ntlworld.com [62.253.162.47]) by hub.freebsd.org (Postfix) with ESMTP id 3A3A037B405 for ; Wed, 27 Feb 2002 17:00:49 -0800 (PST) Received: from lungfish.ntlworld.com ([80.4.0.215]) by mta07-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020228010048.EFYS22101.mta07-svc.ntlworld.com@lungfish.ntlworld.com>; Thu, 28 Feb 2002 01:00:48 +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 g1S11qj12215; Thu, 28 Feb 2002 01:01:52 GMT (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.11.6/8.11.6) id g1S11tF48721; Thu, 28 Feb 2002 01:01:55 GMT (envelope-from scott) Date: Thu, 28 Feb 2002 01:01:55 +0000 From: Scott Mitchell To: =?iso-8859-1?Q?Rickard_Borgm=E4ster?= Cc: freebsd-questions@FreeBSD.ORG Subject: Re: System-wide environment variables Message-ID: <20020228010155.D48231@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> <20020228003904.A48231@localhost> <20020228014555.3f43a7ae.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: <20020228014555.3f43a7ae.doktorn@realworld.nu>; from doktorn@realworld.nu on Thu, Feb 28, 2002 at 01:45:55AM +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 Thu, Feb 28, 2002 at 01:45:55AM +0100, Rickard Borgmäster wrote: > On Thu, 28 Feb 2002 00:39:04 +0000 > Scott Mitchell hit the keyboard and punched: > > > login.conf(5) is probably the right way to do this -- check out the > > 'setenv' property. > > Still don't get it. What does "check out the 'setenv' property" actually > mean? Apologies, I meant 'check out' in the colloquial sense of 'look at', rather than any technical meaning. Read the login.conf manpage, and look at the /etc/login.conf file that should already exist on your machine. That file already has a 'setenv' line in it, so you'll want to add your variable assignments there. You might need some extra quoting to get something like the prompt string you showed us earlier to work. I've never tried it, so I have no idea how well login.conf handles shell metacharacters. 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