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

  1. Newsgroups: gnu.bash.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!spserv.bbn.com!jjd
  3. From: jjd@spserv.bbn.com (James J Dempsey)
  4. Subject: Re: rsh, rcp with bash
  5. Message-ID: <9207301331.AA02814@life.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. References: <2A7691FE.7354@tct.com>
  9. Distribution: gnu
  10. Date: Thu, 30 Jul 1992 13:31:35 GMT
  11. Approved: bug-bash@prep.ai.mit.edu
  12. Lines: 39
  13.  
  14. > According to chet@po.cwru.edu:
  15. > >Bash attempts to source the .bashrc for non-interactive shells running
  16. > >rsh and rcp so things like $PATH get set.
  17. > ... which is, in my opinion, a BIG mistake.
  18. > Thus the following patch to Bash 1.12 to eliminate that behavior:
  19.  
  20. I strongly disagree with you.
  21.  
  22. Rsh is almost useless to me if I can't get my shell to run some init
  23. file to set PATH and other environment variables.
  24.  
  25. If you disable bash from running an init file, there is no way to get
  26. the behaviour I want.
  27.  
  28. If you leave it the way it is, you can get the behaviour you want
  29. in non-interactive mode by wrapping 
  30.  
  31. if [ "$PS1" ]; then
  32.  
  33. < your entire .bashrc >
  34.  
  35. fi
  36.  
  37. around your entire init file.
  38.  
  39.  
  40. Shells like sh and ksh that don't run any init file are really useless
  41. to me.  Shells like tcsh, bash and csh do the right thing, IMHO.
  42.  
  43. Given that this is such a religious issue, it seems best to leave it
  44. the way it is.  This way either methodology can be implemented in the
  45. .bashrc file.  Changing it to not source .bashrc leaves many of us out
  46. in the cold.
  47.  
  48.         --Jim Dempsey--
  49.         jjd@bbn.com
  50.  
  51.