home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / bash / bug / 510 < prev    next >
Encoding:
Text File  |  1992-07-30  |  932 b   |  36 lines

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!hrp.NO!eyvind.ness
  3. From: eyvind.ness@hrp.NO (Eyvind Ness)
  4. Subject: rsh, rcp with bash
  5. Message-ID: <9207300630.AA06975@dole.hrp.no>
  6. Sender: gnulists@ai.mit.edu
  7. Reply-To: Eyvind.Ness@hrp.no
  8. Organization: GNUs Not Usenet
  9. References: <2A7691FE.7354@tct.com>
  10. Distribution: gnu
  11. Date: Thu, 30 Jul 1992 06:30:00 GMT
  12. Approved: bug-bash@prep.ai.mit.edu
  13. Lines: 21
  14.  
  15.   | Date: Wed, 29 July 1992, 12:41 GMT
  16.   | From: Chip Salzenberg
  17.   |
  18.   | According to chet@po.cwru.edu:
  19.   | >Bash attempts to source the .bashrc for non-interactive shells running
  20.   | >rsh and rcp so things like $PATH get set.
  21.   | 
  22.   | ... which is, in my opinion, a BIG mistake.
  23.  
  24. I agree. But why don't you just put:
  25.  
  26.     if tty -s
  27.     then
  28.     ....
  29.  
  30. at the head of your .bashrc? This should block any Bash attempts to read
  31. the rest of ~/.bashrc when there is no terminal associated with your
  32. Bash-process.
  33.  
  34. Eyvind.
  35.  
  36.