home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / bash / bug / 703 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.4 KB  |  47 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!odin.ins.cwru.edu!chet
  3. From: chet@odin.ins.cwru.edu (Chet Ramey)
  4. Subject: Re: Won't read .bashrc
  5. Message-ID: <9212151441.AA16918.SM@odin.INS.CWRU.Edu>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: chet@po.cwru.edu
  8. Organization: GNUs Not Usenet
  9. References: chet@odin.ins.cwru.edu (Chet Ramey)
  10. Distribution: gnu
  11. Date: Tue, 15 Dec 1992 04:41:58 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 32
  14.  
  15. > bash doesn't seem to read my .bashrc file when I login.  It does read
  16. > my .bash_profile and .profile files, but not my .bashrc.  As a result my
  17. > PATH is not set correctly which just wreaks havok later.  I'm switching to
  18. > bash from csh.  I'm only a bash beginner so I suspect that this is my fault,
  19. > not a bug, but I have followed the man file exactly to no avail.
  20.  
  21. This is what is supposed to happen.  From the man page:
  22.  
  23. Login shells:
  24.   On login:
  25.         if /etc/profile exists, source it.
  26.  
  27.         if ~/.bash_profile exists, source it,
  28.           else if ~/.bash_login exists, source it,
  29.             else if ~/.profile exists, source it.
  30.  
  31. If you want .bashrc run on login, add the following lines to the end of your
  32. .bash_profile:
  33.  
  34.     if [ -f ~/.bashrc ]; then
  35.         . ~/.bashrc
  36.     fi
  37.  
  38. Chet
  39.  
  40.  
  41. --
  42. ``The use of history as therapy means the corruption of history as history.''
  43.     -- Arthur Schlesinger
  44.  
  45. Chet Ramey, Case Western Reserve University    Internet: chet@po.CWRU.Edu
  46.  
  47.