Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!usenet.ins.cwru.edu!cwjcc!ncoast!allbery From: allbery@NCoast.ORG (Brandon S. Allbery) Newsgroups: comp.unix.wizards Subject: Re: SYS V Bourne Shell .shrc file Message-ID: <1990Jan7.175807.13054@NCoast.ORG> Date: 7 Jan 90 17:58:07 GMT References: <1792@ncrcce.StPaul.NCR.COM> <1864@sauron.Columbia.NCR.COM> <11888@smoke.BRL.MIL> Reply-To: allbery@ncoast.ORG (Brandon S. Allbery) Followup-To: comp.unix.wizards Organization: North Coast Public Access UN*X, Cleveland, OH Lines: 27 As quoted from <11888@smoke.BRL.MIL> by gwyn@smoke.BRL.MIL (Doug Gwyn): +--------------- | In article <1864@sauron.Columbia.NCR.COM> wescott@micky.Columbia.NCR.COM (Mike Wescott) writes: | >In article <1792@ncrcce.StPaul.NCR.COM> mercer@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@NCoast.ORG, BALLBERY (MCI Mail), ALLBERY (Delphi) uunet!cwjcc.cwru.edu!ncoast!allbery ncoast!allbery@cwjcc.cwru.edu *(comp.sources.misc mail to comp-sources-misc[-request]@backbone.site, please)* *Third party vote-collection service: send mail to allbery@uunet.uu.net (ONLY)*