Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2006 21:24:39 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Peter <petermatulis@yahoo.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: aterm -e screen does not source .bashrc (was: Re: been buggin' me for a while now (console resolution))
Message-ID:  <20060711182439.GA34468@gothmog.pc>
In-Reply-To: <20060711181157.48498.qmail@web60024.mail.yahoo.com>
References:  <20060711175521.GA85462@gothmog.pc> <20060711181157.48498.qmail@web60024.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-07-11 14:11, Peter <petermatulis@yahoo.ca> wrote:
>--- Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
>> I just tested here, with the CVS mirroring account I have at this
>> workstation, by:
>
> [snip]
>
>> and when I su(1) to this account, the .profile is used by bash!
>
> There is no question that .profile is sourced when I log in.  It is
> sourced.  It is only not sourced when I invoke aterm from within
> .xnitrc:
>
> aterm -ls -e screen &

Aha.  I think I'm getting somewhere.

If I run xterm with the -e option, regardless of -ls being present or
not, the shell used to spawn the -e command is *NOT* a login shell.

This way, when I run:

	xterm			=> not login shell

	xterm -ls		=> login shell

	xterm -e /bin/sh	=> not login shell

	xterm -ls -e /bin/sh	=> not login shell either

So it's not the -ls option that is causing your aterm windows to be
non-login shells, but it looks like it is the -e option that does this.





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