Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Oct 1998 11:44:25 -0000 (GMT)
From:      Francisco Reyes <francisco@natserv.com>
To:        CyberPsychotic <fygrave@freenet.bishkek.su>
Cc:        questions@FreeBSD.ORG, Mike Knoll <knollm@lafcol.lafayette.edu>
Subject:   Re: xterm and paths
Message-ID:  <199810031545.LAA11973@federation.addy.com>
In-Reply-To: <Pine.BSD.4.02.9810031433390.425-100000@freenet.kg>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810031545.LAA11973>