home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / bash / bug / 761 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.7 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!hal.rz.uni-ulm.de!huober_r
  2. From: huober_r@hal.rz.uni-ulm.de (Reiner Huober)
  3. Newsgroups: gnu.bash.bug
  4. Subject: Systemwide aliases (.bashrc, ENV)
  5. Date: 26 Jan 1993 21:55:18 -0500
  6. Organization: Universitaet Ulm
  7. Lines: 35
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-bash@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <1993Jan26.094858.9820@wega.rz.uni-ulm.de>
  12.  
  13. Hi there,
  14.  
  15. I don't know if "bug" is the right word, but I think that
  16. the "bash-wizards" are most likely to be in this group and
  17. i found now group like "gnu.bash.discuss".
  18.  
  19. on our Systems, we'd like to have systemwide aliases (like
  20. "alias passwd=yppasswd"), because there is a need for some of
  21. our aliases (like "soft='source /usr/local/scripts/soft'") to 
  22. be not just command, but an alias or function.
  23.  
  24. We could define them in /etc/profile for a login shell, but
  25. unfortunately most of our Sun-Openwin Shells are interactive,
  26. but not login shells (our profile is quite long, so starting
  27. bash -login on all new xterms would be time consuming).
  28.  
  29. We could set "ENV" to something like /etc/bashrc, but this
  30. is only obeyed by noninteractive shells. 
  31.  
  32. We could recommend our users to have the aliases in their
  33. .bashrc, but accidently some of our users (>300) delete
  34. their files and then they say "why can't I set the passwd" or
  35. "whereis that soft command gone".
  36.  
  37. Currently we use functions, which we declare in "/etc/profile",
  38. and export them. But this breaks our "env"-command. I wonder if
  39. this bash-thing has nothing like a systemwide "bashrc" for 
  40. interaction, nologin shells.
  41.  
  42. Thanks in advance
  43.  
  44. Reiner Huober
  45. ---------------
  46. email: reiner.huober@rz.uni-ulm.de
  47.  
  48.