home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.bash.bug
- Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
- From: chet@odin.ins.cwru.edu (Chet Ramey)
- Subject: Re: Won't read .bashrc
- Message-ID: <9212151441.AA16918.SM@odin.INS.CWRU.Edu>
- Sender: gnulists@ai.mit.edu
- Reply-To: chet@po.cwru.edu
- Organization: GNUs Not Usenet
- References: chet@odin.ins.cwru.edu (Chet Ramey)
- Distribution: gnu
- Date: Tue, 15 Dec 1992 04:41:58 GMT
- Approved: bug-bash@prep.ai.mit.edu
- Lines: 32
-
- > bash doesn't seem to read my .bashrc file when I login. It does read
- > my .bash_profile and .profile files, but not my .bashrc. As a result my
- > PATH is not set correctly which just wreaks havok later. I'm switching to
- > bash from csh. I'm only a bash beginner so I suspect that this is my fault,
- > not a bug, but I have followed the man file exactly to no avail.
-
- This is what is supposed to happen. From the man page:
-
- Login shells:
- On login:
- if /etc/profile exists, source it.
-
- if ~/.bash_profile exists, source it,
- else if ~/.bash_login exists, source it,
- else if ~/.profile exists, source it.
-
- If you want .bashrc run on login, add the following lines to the end of your
- .bash_profile:
-
- if [ -f ~/.bashrc ]; then
- . ~/.bashrc
- fi
-
- Chet
-
-
- --
- ``The use of history as therapy means the corruption of history as history.''
- -- Arthur Schlesinger
-
- Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu
-
-