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

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!prg.ox.ac.UK!Mark.Bush
  3. From: Mark.Bush@prg.ox.ac.UK (Mark Bush)
  4. Subject: Re: rsh, rcp with bash
  5. Message-ID: <4176@inca.comlab.ox.ac.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Oxford University Computing Laboratory
  8. References: <9207241236.AA02088.SM@odin.INS.CWRU.Edu> 
  9. Distribution: gnu
  10. Date: Thu, 30 Jul 1992 11:19:31 GMT
  11. Approved: bug-bash@prep.ai.mit.edu
  12. Lines: 18
  13.  
  14. In article <2A7691FE.7354@tct.com> chip@tct.COM (Chip Salzenberg) writes:
  15. #According to chet@po.cwru.edu:
  16. #>Bash attempts to source the .bashrc for non-interactive shells running
  17. #>rsh and rcp so things like $PATH get set.
  18. #
  19. #... which is, in my opinion, a BIG mistake.
  20.  
  21. Why is this a BIG mistake?  If this behaviour isn't the default and I want
  22. it to happen, I have to mess with various things to get my .bashrc sourced.
  23.  
  24. If the .bashrc is known to be sourced, I can do things like checking PS1 to
  25. see if I am interactive.
  26.  
  27. If I run `rsh host ls', then I want to know which `ls' I am running by
  28. getting *my* PATH at the remote end.
  29.  
  30. Mark
  31.  
  32.