Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Apr 2000 17:47:19 -0700
From:      Peter Wemm <peter@netplex.com.au>
To:        "Matthew N. Dodd" <winter@jurai.net>
Cc:        "David O'Brien" <obrien@freebsd.org>, Terry Lambert <tlambert@primenet.com>, arch@freebsd.org
Subject:   Re: Import of tcsh into src/contrib/, replacing src/usr.bin/csh 
Message-ID:  <20000407004719.D8E0B1CD7@overcee.netplex.com.au>
In-Reply-To: Message from "Matthew N. Dodd" <winter@jurai.net>  of "Thu, 06 Apr 2000 18:15:48 EDT." <Pine.BSF.4.21.0004061815230.50194-100000@sasami.jurai.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Matthew N. Dodd" wrote:
> On Thu, 6 Apr 2000, David O'Brien wrote:
> > On Thu, Apr 06, 2000 at 10:01:17PM +0000, Terry Lambert wrote:
> > > I think putting in tcsh as csh would be putting FreeBSD in the
> > > same position of having a shell where script authors think they
> > > are using features which are available everywhere, but are
> > > specific to the "enhanced" shell
> > 
> > Tcsh buys us *INTERACTIVE* enhancements, not scripting ones.
> 
> What is stopping you from adding libedit support to /bin/csh in the same
> way it was added to /bin/sh?

Why bother? By the time you've finished, you essentially end up with tcsh
except you've diverged so far that you've created a new maintainence chore.
The value in tcsh's completion support is that it is totally programmable
and can be context sensitive, as well as the usual key to function binding.

I have long wanted to replace csh with tcsh in the base tree.  The scripting
is so close to unchanged that it doesn't matter.  Even then, the extensions
are only active when running on a tty, not in script mode.  IMHO, the change
is as close to a risk-free change as you can get.

Incidently, I'd be interested to know how many folks actually seriously use
non-trivial csh scripts.  I have not seen a csh script in over 10 years -
this has mainly been helped along by every vendor having their own
incompatable or broken version of csh.  csh scripts are not portable,
period.

One other thing.. src/bin/csh appears to have large parts that are a
derivative of tcsh!  (since I don't have the sccs files I can't be certain,
but things like SHORT_STRINGS came directly from tcsh's localization
efforts)

Cheers,
-Peter





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000407004719.D8E0B1CD7>