From owner-freebsd-questions Sat Oct 3 08:55:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA19218 for freebsd-questions-outgoing; Sat, 3 Oct 1998 08:55:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from federation.addy.com (federation.addy.com [207.239.68.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA19176 for ; Sat, 3 Oct 1998 08:55:31 -0700 (PDT) (envelope-from francisco@natserv.com) Received: from quisqueya.natserv.com (TC3-dial-157-142.oldslip.inch.com [207.240.142.157]) by federation.addy.com (8.8.5/8.6.12) with ESMTP id LAA11973; Sat, 3 Oct 1998 11:45:26 -0400 (EDT) Message-Id: <199810031545.LAA11973@federation.addy.com> X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Sat, 03 Oct 1998 11:44:25 -0000 (GMT) Reply-To: francisco@natserv.com From: Francisco Reyes To: CyberPsychotic Subject: Re: xterm and paths Cc: questions@FreeBSD.ORG, Mike Knoll Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 03-Oct-98 CyberPsychotic wrote: >> I have two accounts, 'root' and 'abcdef', abcdef is a member of wheel. >> the xterm session on 'abcdef' as /usr/local/bin in the path, but >> 'root' does not. > you will need to specify xterm -ls, so xterm will know that shell, which > is started, is loginshell, > Fyodor To add to what Fyodor wrote. Some shells (i.e. Bash) have a dot file which is read when your shell is "interactive, but not a login shell". If you want the same behavior for both, login shells and not, you could link the dot file used for one to the other. Example: In Bash the ~/.profile is used, among other possible files, for login shells. ~/.bashrc is used for non login shells. You could "ln -s .profile .bashrc" so you get the same paths/environment from xterm and regular sessions. ---- francisco@natserv.com The power to serve. http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message