From owner-freebsd-questions@FreeBSD.ORG Tue Jul 11 18:12:47 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 2C38116A531 for ; Tue, 11 Jul 2006 18:12:47 +0000 (UTC) (envelope-from petermatulis@yahoo.ca) Received: from web60024.mail.yahoo.com (web60024.mail.yahoo.com [209.73.178.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 9120443E30 for ; Tue, 11 Jul 2006 18:11:59 +0000 (GMT) (envelope-from petermatulis@yahoo.ca) Received: (qmail 48500 invoked by uid 60001); 11 Jul 2006 18:11:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=x9sZiLnMjQdN+51n1xFIrsY80uiEOopy6A102AG2EijhOhKdBNbqBZZzTmirxtsWUFIg9TI6as9ligJNFryEmAnupfHgzgb+TELL36R4xqEIt6rOIEhpZX5PMttPSjhSsT6EHoFqm7ncR2+NoMI4mCX0wNbyyWscyemnles2R2U= ; Message-ID: <20060711181157.48498.qmail@web60024.mail.yahoo.com> Received: from [66.131.121.105] by web60024.mail.yahoo.com via HTTP; Tue, 11 Jul 2006 14:11:57 EDT Date: Tue, 11 Jul 2006 14:11:57 -0400 (EDT) From: Peter To: Giorgos Keramidas In-Reply-To: <20060711175521.GA85462@gothmog.pc> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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:12:47 -0000 --- Giorgos Keramidas wrote: > On 2006-07-11 12:39, Peter wrote: > > --- Giorgos Keramidas wrote: > > > Can you please also send the output of: > > > > > > $ ls -ld .bash* .sh* .profile > > > > $ ls -ld .bash* .sh* .profile > > -rw-rw---- 1 peter users 7.7K Jul 11 09:31 .bash_history > > -rw-rw---- 1 peter users 1.6K Jul 4 15:31 .profile > > -rw-rw---- 1 peter users 975B Jul 29 2005 .shrc > > Strange, there is no .bash_profile but you still see .profile is > unused? > > 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 & >From before I know that this *does* result in a sourcing of the file: aterm -e login & >From the bash man page: When bash is invoked as an interactive login shell, or as a non-inter- active shell with the --login option, it first reads and executes com- mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com