From owner-freebsd-questions Wed Feb 11 06:37:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA15106 for questions-outgoing; Wed, 11 Feb 1998 06:37:46 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA15073 for ; Wed, 11 Feb 1998 06:37:26 -0800 (PST) (envelope-from atf3r@cs.virginia.edu) Received: from ares.cs.virginia.edu by mail.virginia.edu id aa01202; 11 Feb 98 9:37 EST Received: from mamba.cs.Virginia.EDU (mamba-fo.cs.Virginia.EDU [128.143.136.18]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id JAA16181; Wed, 11 Feb 1998 09:36:50 -0500 (EST) Received: from localhost (atf3r@localhost) by mamba.cs.Virginia.EDU (8.7.5/8.7.3) with SMTP id JAA20285; Wed, 11 Feb 1998 09:36:49 -0500 (EST) X-Authentication-Warning: mamba.cs.Virginia.EDU: atf3r owned process doing -bs Date: Wed, 11 Feb 1998 09:36:49 -0500 (EST) From: "Adrian T. Filipi-Martin" Reply-To: Adrian Filipi-Martin To: spork cc: questions@FreeBSD.ORG Subject: Re: bash question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 10 Feb 1998, spork wrote: > I'm stumped. I just turned one of my home machines into a dual-booter, > and one of the things I've installed is bash. I've done this a hundred > times, and sticking a .bashrc in my homedir has been how I get bash to do > what I wish... For some reason, it's not being read at login. If I > source it, it works. I also tried naming it .profile. According to the > manpage .bashrc is correct. Perms look OK, readable by anyone. > > Ideas??? .bash_profile or .profile are read when starting a login shell and .bashrc is read when starting a non-login shell. I don't know why renaming to .profile didn't work. It should. Did you perhaps change your X settings such that xterms are login shells by default? In any event, a lot of people always want the non-login stuff to be avail, so you might try adding the following to the ned of your .bash_profile: [ -f ~/.bashrc ] && . ~/.bashrc WHen debugging a problem like this, I often find it usefuil to observe exactly when a particular config file is being read. Try adding a line like the following to each of your dot-files: echo $0:.bash_profile:$- Replace .bash_profile with the proper file name. $- is the set of shell options in effect, e.g. interactive, etc. Adrian -- adrian@virginia.edu ---->>>>| If I were stranded on a desert island, and System Administrator --->>>| I could only have one OS for my computer, Neurosurgical Visualization Lab ->>| it would be FreeBSD. Think about it..... http://www.nvl.virginia.edu/ ->| http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message