SYS V Bourne Shell .shrc file

Brandon S. Allbery allbery at NCoast.ORG
Mon Jan 8 04:58:07 AEST 1990


As quoted from <11888 at smoke.BRL.MIL> by gwyn at smoke.BRL.MIL (Doug Gwyn):
+---------------
| In article <1864 at sauron.Columbia.NCR.COM> wescott at micky.Columbia.NCR.COM (Mike Wescott) writes:
| >In article <1792 at ncrcce.StPaul.NCR.COM> mercer at ncrcce.StPaul.NCR.COM (Dan Mercer) writes:
| >> The .shrc is also invoked prior to /etc/profile and ~/.profile on login.
| >Nope.  After /etc/profile but before $HOME/.profile, mimicing csh's behavior.
| 
| Ugh -- it was obviously the wrong way around in csh, so why mimic that??
+---------------

I think the csh behavior cited above is more correct.  I've gotten sick of
kluging around Altos's csh, which invokes .cshrc before /etc/cshrc -- I set my
histchars to ^@ so I can use ! without having to remember to backslash it (I
do a lot of UUCP) and I *always* have to arrange for it to not be set if it's
a login shell, because /etc/cshrc usually contains a line like "stty kill ^u"
(Altos's default is ^X, ugh).  Boo, hiss.  Besides which, the user shouldn't
be given the opportunity to alter what /etc/cshrc does; if .cshrc is run
forst, the user can drop an alias in place of one of the commands in
/etc/cshrc.  (It's not a security hole, but it *can* violate the Principle of
Least Surprise.)

++Brandon
-- 
Brandon S. Allbery    allbery at NCoast.ORG, BALLBERY (MCI Mail), ALLBERY (Delphi)
      uunet!cwjcc.cwru.edu!ncoast!allbery ncoast!allbery at cwjcc.cwru.edu
*(comp.sources.misc mail to comp-sources-misc[-request]@backbone.site, please)*
*Third party vote-collection service: send mail to allbery at uunet.uu.net (ONLY)*



More information about the Comp.unix.wizards mailing list