From: Charles M Richmond <cmr@iisc.com>
Subject: Re: DUnix 4.0B /bin/csh and errors in .cshrc/.login
Date: 1997/02/24 [thread overview]
Message-ID: <33119A08.2781@iisc.com> (raw)
In-Reply-To: E63tJF.B67@fsa.bris.ac.uk
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 *
***********************************************************************
next prev parent reply other threads:[~1997-02-24 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-18 5:00 DUnix 4.0B /bin/csh and errors in .cshrc/.login Brian 'Doc' O'Neill
1997-02-24 5:00 ` Mark Taylor
1997-02-24 5:00 ` Charles M Richmond [this message]
1997-02-25 5:00 ` Hugues Talbot
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox