home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / bash / bug / 760 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!gnu.ai.mit.edu!friedman
  2. From: friedman@gnu.ai.mit.edu (Noah Friedman)
  3. Newsgroups: gnu.bash.bug
  4. Subject: Re: always execute .bashrc
  5. Date: 26 Jan 1993 21:41:09 -0500
  6. Organization: Free Software Foundation, 675 Mass Ave. Cambridge, MA 02139
  7. Lines: 16
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-bash@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <FRIEDMAN.93Jan26005646@nutrimat.gnu.ai.mit.edu>
  12. References: <9301141412.AA15219.SM@odin.INS.CWRU.Edu>
  13.  
  14. In article <1993Jan25.115536.5935@thom5.ecs.ox.ac.uk> Mark.Bush@prg.ox.ac.UK (Mark Bush) writes:
  15. >What is wrong with the shell trying to source .bashrc on *every*
  16. >invocation (with login shell being the only exception)?  If you
  17. >specifically don't want it to read the startup file, add a -norc flag.
  18. >If you have stuff in .bashrc which you specifically don't want read,
  19. >protect it with an `if' checking the value of PS1.
  20.  
  21. This would be incompatible with standard bourne shell behavior.  What
  22. happens if you execute a bash shell script?
  23.  
  24. Even if bash were to adopt the behavior you specified, a single-letter
  25. option equivalent to `--norc' is necessary, since you can't group `--norc'
  26. with other options and the BSD #! kernel hack only allows one argument to
  27. the interpreter other than the path of the script file (which it adds
  28. implicitly).
  29.  
  30.