From owner-freebsd-questions@FreeBSD.ORG Tue Jul 11 18:25:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0B8116A4DD for ; Tue, 11 Jul 2006 18:25:00 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A06E43D6D for ; Tue, 11 Jul 2006 18:24:59 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-1) with ESMTP id k6BIOi94018552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 11 Jul 2006 21:24:46 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k6BIOd2D040134; Tue, 11 Jul 2006 21:24:39 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k6BIOdiI040133; Tue, 11 Jul 2006 21:24:39 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 11 Jul 2006 21:24:39 +0300 From: Giorgos Keramidas To: Peter Message-ID: <20060711182439.GA34468@gothmog.pc> References: <20060711175521.GA85462@gothmog.pc> <20060711181157.48498.qmail@web60024.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060711181157.48498.qmail@web60024.mail.yahoo.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.702, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.70, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No 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)) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jul 2006 18:25:00 -0000 On 2006-07-11 14:11, Peter wrote: >--- Giorgos Keramidas 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.