From owner-freebsd-questions Wed Feb 27 14:33:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from studsboll.realworld.nu (a63.flamman.student.liu.se [130.236.218.63]) by hub.freebsd.org (Postfix) with ESMTP id A3BA837B41A for ; Wed, 27 Feb 2002 14:33:23 -0800 (PST) Received: from studsboll.realworld.nu (localhost [127.0.0.1]) by studsboll.realworld.nu (8.11.3/8.11.3) with SMTP id g1RMXGh44348; Wed, 27 Feb 2002 23:33:16 +0100 (CET) (envelope-from doktorn@realworld.nu) Date: Wed, 27 Feb 2002 23:33:16 +0100 From: Rickard Borgmäster To: Mike Makonnen Cc: freebsd-questions@freebsd.org Subject: Re: System-wide environment variables Message-Id: <20020227233316.42430b8e.doktorn@realworld.nu> In-Reply-To: <1014735740.677.25.camel@blackbox.pacbell.net> 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> X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i386-unknown-freebsd4.3) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 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? -- Rickard .--. .--. .----------------------------------------. | | | | .-. | Rickard Borgmäster | | | | |/ / | doktorn@sub.nu | .-^ | .--. | < | http://doktorn.sub.nu/ | ( o | ( () ) | |\ \ `----------------------------------------' `-----' `--' `--' `--' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message