* DUnix 4.0B /bin/csh and errors in .cshrc/.login
@ 1997-02-18 5:00 Brian 'Doc' O'Neill
1997-02-24 5:00 ` Mark Taylor
0 siblings, 1 reply; 4+ messages in thread
From: Brian 'Doc' O'Neill @ 1997-02-18 5:00 UTC (permalink / raw)
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...
======================================================================
Brian O'Neill - Director of Computing, Computer Science (508) 934-3645
University of Massachusetts Lowell <*> oneill@cs.uml.edu
"Did I mention that my nose is on fire and that there are 15 badgers
living in my pants?" Marcus, Babylon 5
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DUnix 4.0B /bin/csh and errors in .cshrc/.login
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
1997-02-25 5:00 ` Hugues Talbot
0 siblings, 2 replies; 4+ messages in thread
From: Mark Taylor @ 1997-02-24 5:00 UTC (permalink / raw)
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...
>
The /bin/csh which comes with Digital Unix 4.0 is buggy.
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).
The bugs were introduced apparently when they rewrote csh for POSIX
compatibility. 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.
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.
-----------------------------------------------------------------------
| Mark Beauchamp Taylor - physicist trapped in a chemist's body. |
| mark.taylor@bris.ac.uk http://zeus.bris.ac.uk/~chmbt/index.html |
| Department of Chemistry, University of Bristol, UK -------
-----------------------------------------------------| ... It's the future! |
------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DUnix 4.0B /bin/csh and errors in .cshrc/.login
1997-02-24 5:00 ` Mark Taylor
@ 1997-02-24 5:00 ` Charles M Richmond
1997-02-25 5:00 ` Hugues Talbot
1 sibling, 0 replies; 4+ messages in thread
From: Charles M Richmond @ 1997-02-24 5:00 UTC (permalink / raw)
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 *
***********************************************************************
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DUnix 4.0B /bin/csh and errors in .cshrc/.login
1997-02-24 5:00 ` Mark Taylor
1997-02-24 5:00 ` Charles M Richmond
@ 1997-02-25 5:00 ` Hugues Talbot
1 sibling, 0 replies; 4+ messages in thread
From: Hugues Talbot @ 1997-02-25 5:00 UTC (permalink / raw)
Charles M Richmond <cmr@iisc.com> writes:
>
> Mark Taylor wrote:
>
> > The /bin/csh which comes with Digital Unix 4.0 is buggy.
>
> Would't surprise me.
>
>
> My personal recommendation is to not use csh. Go for the standard Posix
> sh, which is ksh.
My recommendation would be to go for tcsh. csh is usually quite
bad to start with on _any_ platform.
Documentation at:
http://pantheon.cis.yale.edu/~dcs/tcsh.html/
Source code at:
file://ee.cornell.edu/pub/tcsh/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-02-25 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1997-02-25 5:00 ` Hugues Talbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox