From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,24d77d239653cff9 X-Google-Attributes: gidfee84,public From: Charles M Richmond Subject: Re: DUnix 4.0B /bin/csh and errors in .cshrc/.login Date: 1997/02/24 Message-ID: <33119A08.2781@iisc.com>#1/1 X-Deja-AN: 221057342 References: <5edbi6$f43$1@jupiter.cs.uml.edu> Content-Type: text/plain; charset=iso-2022-jp Organization: Integrated International Systems Corp. Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 X-Mailer: Mozilla 3.01 (X11; I; OSF1 V3.2 alpha) Mark Taylor wrote: > > On 18 Feb 1997 17:47:34 -0500 Brian 'Doc' O'Neill (oneill@cs.uml.edu) wrote: > >Does anybody know why the /bin/csh that comes with 4.0B kicks people out for > >simple syntax errors in their .cshrc or .login files? This has caused a LOT > >of trouble for me, as I'm constantly getting phone calls from people who > >can't log in... > > If the shell exits, then the person will be logged out. This is pretty much immutable (-: > > The /bin/csh which comes with Digital Unix 4.0 is buggy. Would't surprise me. > > The bugs I have come across are to do with pattern matching, and > are quite serious (csh can hang just trying to do a pattern match, > as well as giving some *very* odd results). I would like to see some examples. (Out of curiosity - I am no longer in a position to actually fix things) > The bugs were introduced apparently when they rewrote csh for POSIX > compatibility. Csh is not Posix compliant, as there is no Posix csh defined. DEC may very well have made some changes to csh (and I can guess who the engineer probably was) , but there is no standards body that defines csh. Thus the changes were not for Posix , but were probably bug fixes. > The fix I have used is just taking the /bin/csh binary > from Digital Unix 3.2 and using that instead, it seems to work > perfectly OK but apparently isn't POSIX compliant, but I can live > with that. I actually worked on csh for DEC, cleaning up the 8 bit quoting and fixing the endless recursion logout , etc. But I think that there might have been a major rewrite later. The csh code is not very good and the lack of a standard definition for behavior doesn't help. > > You could try getting Digital to rewrite the csh, but when I reported > the bug the man on the end of the phone asked me nicely not to, > and I figured it wouldn't be a very fast solution, so I didn't > push it. > > I'm not certain this is the same problem you're seeing of course ... > > I can get you a 3.2 /bin/csh binary if you want. > My personal recommendation is to not use csh. Go for the standard Posix sh, which is ksh. Charlie P.S. The "bad code" that I refer to , predates any DEC changes. -- *********************************************************************** * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 * ***********************************************************************