Date: Tue, 11 Jul 2006 14:11:57 -0400 (EDT) From: Peter <petermatulis@yahoo.ca> To: Giorgos Keramidas <keramida@ceid.upatras.gr> 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: <20060711181157.48498.qmail@web60024.mail.yahoo.com> In-Reply-To: <20060711175521.GA85462@gothmog.pc>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Giorgos Keramidas <keramida@ceid.upatras.gr> wrote: > On 2006-07-11 12:39, Peter <petermatulis@yahoo.ca> wrote: > > --- Giorgos Keramidas <keramida@ceid.upatras.gr> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060711181157.48498.qmail>